1 of 1 people found this helpful
you can try adding Start /wait to your commands. This tells the command to completly execute before moving on to the next command:
More info here - http://technet.microsoft.com/en-us/library/cc961065.aspx
"If you want to control how multiple applications are installed, you can create a batch file that contains the individual installation commands and uses the Start command with the /wait command line switch. This method ensures that your applications install sequentially and that each application is fully installed before the next application begins its installation routine. The batch file is then run from the [GuiRunOnce] section."
We had the same exact problem. As EMiranda was saying, create a batch file and put it in your core server's ldlogon share. You keep the first two GuiRunOnce commands to sleep and then map to the share, then you call the batch file:
Command1="net use \\LDCORE\ldlogon [password] /u:[username]"
Then in your batch file do your call to the LANDesk agent installer wscfg32.exe using the "start /wait" command:
start /wait \\LDCORE\ldlogon\wscfg32.exe /F /L /STATUS /NOREBOOT
You can also include any other commands in the batch file... for example, we include our antivirus installer as well as run a "gpupdate /force /boot" to make sure the machine has the latest policy settings and reboots once automatically.
Thanks to both of you for solving my problem! This worked like a champ! I've finally got a reliable way to install the LANDesk Agent, which means I can also install all the other stuff that needs to go on a freshly imaged machine. (We try to keep our OS image as bare as possible - we prefer to install drivers and what we call "Layer 1" software as part of the image deployment. For us, "Layer 1" software includes the anti-virus agent, , Adobe Reader, Microsoft Office, browser plug-ins such as Flash, Shockwave, QuickTime, etc. We use LANDesk HII to install device drivers.)
OSD has become pretty complex in our environment with quite a few "moving parts", however we like the fact that we can support over 30 different device models, in numerous different labs and offices across 24 different schools, with just one OS image.
Thanks again for the assistance with LANDesk Agent installs.