restart system from startup script
I've seen other threads with some info but nothing I've tried and has actually worked. I need a way to restart a system once (easily done with flags) after running a particular startup script. I've tried the following methods to no avail:
from Batch files - Shutdown and Reboot
WMIC OS Where Primary=TRUE Call Reboot (happily installs the WMIC client then fails with a bad parameter)
shutdown -r -t 1 (get a device not ready error -have tried psshutdown as well with no effect)
from this article msgoodies: Restarting Windows XP from a startup script is not easy I've tried:
psexec -accepteula -sd shutdown -r -t 1 . It seems to start but never calls the reboot (ran with startup scripts visible to check)
Anyways, if anyone has a surefire method I'd love to know.