Quantcast
Channel: Ivanti User Community: Message List - OS Deployment and Provisioning
Viewing all articles
Browse latest Browse all 3345

Re: Patch system while provisioning is not working

$
0
0

You can also use this to add the environment variable pre-restart out of WinPE so that it is there even before LANDesk installs.  It should auto detect if its 32bit or 64bit.  I have not tested this yet - but it should work as is.

 

Create a provisioning task to execute a batch file:

 

Create a batch file containing:

echo Windows Registry Editor Version 5.00 > x:\import.reg

echo [HKEY_LOCAL_MACHINE\hklmtemp\ControlSet001\Control\Session Manager\Environment] >> x:\import.reg

if exist "c:\program files (x86)\" (echo "LDMS_LOCAL_DIR"="C:\Program Files (x86)\LANDesk\LDClient\Data" > x:\import.reg) else (echo "LDMS_LOCAL_DIR"="C:\Program Files\LANDesk\LDClient\Data" >> x:\import.reg)

echo [HKEY_LOCAL_MACHINE\hklmtemp\ControlSet002\Control\Session Manager\Environment] >> x:\import.reg

if exist "c:\program files (x86)\" (echo "LDMS_LOCAL_DIR"="C:\Program Files (x86)\LANDesk\LDClient\Data" > x:\import.reg) else (echo "LDMS_LOCAL_DIR"="C:\Program Files\LANDesk\LDClient\Data" >> x:\import.reg)

reg load hklm\hklmtemp c:\windows\system32\config\system

reg import x:\import.reg

reg unload hklm\hklmtemp

del /f /q x:\import.reg

 

 

Let me know if it doesn't work correctly,

-Peter


Viewing all articles
Browse latest Browse all 3345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>