This is a script created by Patrick Warme and Corey Serrins of the support team.
This script was created to convert your post-installation tasks to run via RunOnceEx commands for Windows 7. Our goal is to allow post-installation tasks to survive reboots and help with installers that do not 'wait' properly and interrupt other installations.
The script runs on both Windows 7 Scripted Installs as well as Windows 7 sysprepped image deployments (non-sysprepped images will not work at this time).
You can download it here:
http://downloads.kace.com/support/downloads/k2000/scripts/runonceex_converter.zip
NOTE: This script is for 3.4 and 3.5 only, it does not work for 3.6, which has a new Task Engine
Here's what you'll need to do:
- Set up your Scripted Install or Sysprepped Image with your desired Postinstall Tasks
- Create a new Application post install task with a runtime environment set to "K2000 Boot Environment (Windows)"
- Attach the zipped file called "runonceex_converter_task.zip"
- Use "call runonceex_converter.bat" as the command line.
- If one of your postinstall tasks already calls for a reboot, you can use that, import the one provided, or create your own reboot task, but make sure the word "reboot" is in the name. If you create your own, we do recommend the following be in the .bat command since we found this to work best:
taskkill /f /IM runonce.exe
shutdown -f -r -t 1
ping 127.0.0.1 -n 30 - Duplicate your reboot commands as many times as you like
- Add the PO Converter mid-level task to your deployment.
- Add the reboots where you like as a post install task and save.
This should resolve any issues you experienced with reboots in your post install tasks with the K2000 and Windows 7.
Any feedback or comments would be welcome!
EDIT:
Script was updated to v. 1.5.2 (3/5/2013)
-Scripted installs were not reporting as completed, fixed that in this release.
I do have one problem now: after the scripted installation is completed I can't find this in the "Deployment Log". Before using this script it was showing the installation time. I've already tried doing a reboot at the end of the scripted installation but I can't get it solved. Do you have an idea about this? - Remco 11 years ago
That being said, I would recommend that you upgrade to v3.6 of the K2000 and enjoy the new Task Engine that can do everything the Task Converter did and more! - warmep 10 years ago