Hi,
First of all thumb up for a great project!
I've created a set od batch scripts for SW install.
1. I run the "DoUpdate.cmd" with cmd line switches (reboot disabled). At the end it prompts for a reboot (which I don't to do want at this point)
2. The script continues with my custom SW install
3. Here I'd like to restart the machine with the "DoUpdate.cmd" prepared for run after restart
4. Force a restart after the script prepares the "run after reboot"
I've tried a few ideas but I cannot get it to run ("DoUpdate.cmd" needs elevated permissions).
The question: Can I somehow call the WSUS method that prepares the machine for restart (WUO temp admin, runonceex entry...) from my script? My script is started with elevated permissions (so this shouldn't be a problem).
Thank you!