PowerShell – Run Scheduled Task Once and Delete
Testing what the process looks like… To turn this into a production ready process: Step 1 Create the batch file c:\YourScript\script.cmd Step 2 Create the scheduled task Step 3 Restart computer Step 4 Verify the script ran and the task was deleted Notes Something that is pretty cool, this process survives sysprep Read More …