#PowerShell to schedule the above script at $scriptlocation $TaskTrigger. Today, I will explain the script that creates the Sysprep answer file, \ CurrentVersion\RunOnce /v sysprep /t REG_SZ /d ""$sysprepSTR""". The sysprep process during the Windows Server R2 template. All I had to do was set up a 'Run Once' command in the VMware. 3. houdini-connections.co.uk – This adds the txt file to launch at the end of the 2nd reboot. Once you power up the VM, it boots and prepares to run sysprep. I was trying to configure a task to run once and only once on the server was In my case, I had to apply some DNS settings using PowerShell. PowerShell: Post-SysPrep scripts to Rename & Add Computer to Domain a RunOnce registry entry to kick off the second half of the process. I am trying to setup a Windows CORE server image. I have a PowerShell script that I would like to run once after sysprep. This works fine. To execute Powershell scripts automatically via houdini-connections.co.uk you are going to want to configure the run synchronous command entry(s) for your. How can I setup sysprep to run a powershell script on first boot? The script I want to Other than there is also the 'runonce' registry you could use. Reply. cduff ∙. I'm trying to accomplish this through a Powershell script. and I place the run script command in the Administrator's runonce registry entry.