I have two answer files that process my unattended windows installation for our image. In the OOBE answer file, under the first logon commands: I have 5 VBS scripts that get called.
After the 1st script finishes, the computer restarts. Then it calls 4 other scripts before restarting. My logs show that it skips/errors on scripts #2, #3, #4 and then it completes script #5... I then had to record the oobe phase with my phone because the error is so quick!
I am calling my vbs with cscript, so:
<SynchronousCommand wcm:action="add"> <Order>2</Order> <CommandLine>C:\Windows\System32\cscript.exe "C:\hpcompaq\commands\test.vbs"</CommandLine> <Description>test</Description> <RequiresUserInput>false</RequiresUserInput> </SynchronousCommand>
I end up getting a cscript error ( which I viewed via my paused video):
The application was unable to start correctly (0xc0000142). Click OK to close the application.
When I test the script not via my answer file and using cscript, it does not error on me and performs the task as required. The script modifies our description field in our Active Directory after the computer is named, and attached to the domain.
Any ideas? I know everything works as my 64 bit image calls the same scripts and has no issues...



Help
Back to top











