I would start by looking at the smsts.log file, that’s where you can see what commands were executed within the SMS Standalone Task Sequencer.
For mysterious errors, I would inject my zticscript wrapper: http://xtremeconsulting.com/blog/capturing-debug-information-from-client-scripts/ Files can be downloaded from: http://mdtex.codeplex.com/SourceControl/latest#Templates.Common/Distribution/Scripts/ZTICScript.cmd http://mdtex.codeplex.com/SourceControl/latest#Templates.Common/Distribution/Scripts/ZTICScript_log.wsf -k From: [email protected] [mailto:[email protected]] On Behalf Of David O'Brien Sent: Thursday, March 19, 2015 2:23 PM To: [email protected] Subject: [MDT-OSD] B&C breaks Windows Scripting Host Hi all, Strange problem here. I'm building a Windows 7 x64 image in MDT 2013 standalone and have the following problem. The Task Sequence runs fine, everything is good until near the end in the "State Restore" phase, right after the "Apply GPO Pack" (which doesn't do anything in my case) I would like to run two wsf scripts. (one is Nickolaj's WSUS cleanup script, the other Mikael's "image cleanup" script) Both fail with "incorrect function", error 1. The Task Sequence fails, I stay logged on as the same user, map the Deployment share again, set the scriptroot variable as MDT would and run the script with the same command and everything is fine, no errors. I tried adding a reboot right before those two steps, didn't help. If I remove those two steps the Task Sequence completes successfully. Anybody seen this before? My workaround now will be to pause the TS and execute the scripts manually. Cheers David
