Tool: OSConfig MDT First Run


When ZTIOSConfig.wsf is run in the MDT Task Sequence (in WinPE) it will perform the following steps:

  1. Copy the OSConfig directory from Applications\OSConfig or Scripts\OSConfig to C:\_SMSTaskSequence\OSConfig
  2. Create C:\_SMSTaskSequence\OSConfig\OSConfig.cmd

OSConfig.cmd is generated and will perform the following steps:

  1. Robocopy C:\_SMSTaskSequence\OSConfig to %WinDir%\OSConfig.  This is where the OSConfig directory will reside
  2. Run %WinDir%\OSConfig\OSConfig.vbs with a switch that matches your Operating System (as WMI will not be running when the VBS runs during RunSynchronous)
  3. Remove C:\_SMSTaskSequence\OSConfig

This is what this looks like in WinPE

2015-12-01_11-15-55


Once the computer restarts from WinPE, and the RunSynchronous steps are executed you will see the OSConfig.cmd execute while the computer is “Getting Ready”.  This is how you know that it is running properly.

2015-12-04_12-08-32


Now in Windows nothing has changed (we didn’t create any OSConfig Settings), but that’s ok.  Changes will be reviewed in a different post, we just wanted to make sure that OSConfig works.

2015-12-04_12-12-41

Advertisement