Tool: OSConfig RunOnce Settings


There may be times you want to apply a Setting one time only to a Deployment, and since OSConfig keeps things persistent at C:\Windows\OSConfig, you want to make sure it doesn’t get run a second time in the future.  Simply add a RunOnce to the name of the Settings file and OSConfig will move the file to C:\Windows\OSConfig\Settings\RunOnce after it has been processed.  This can be combined with another naming convention like TSYes or x86.  Additionally if I give the file a name that starts with 00, since the files are run in Sort Order, it will run first before anything else.  In the example below I have added 00 TSYes RunOnce – Clear All Windows Update Configuration.cmd to wipe out all the WSUS information in case I didn’t clear this in my Captured Image.

2015-12-01_15-02-16

Advertisements