Navigator Posted March 28, 2005 Share Posted March 28, 2005 hello all, i have created a successful unattended xpsp2 cd. my only question is of course, how would i make the computer to auto shut down and restart? i am familiar with the old dos command of [shutdown -r -t00] how would i incorporate this into the unattended cd? thanks for reading and suggestions that you may offer Link to comment Share on other sites More sharing options...
`Felix` Posted March 28, 2005 Share Posted March 28, 2005 i am familiar with the old dos command of [shutdown -r -t00] how would i incorporate this into the unattended cd? thanks for reading and suggestions that you may offer <{POST_SNAPBACK}>Add shutdown [options] to the last line your runonceex.cmd then after eveything is installed your can either reboot, logoff or shutdown. Link to comment Share on other sites More sharing options...
durex Posted March 28, 2005 Share Posted March 28, 2005 and in case you didnt know 'shutdown /?' will show you the list of options... Link to comment Share on other sites More sharing options...
rompom7 Posted March 28, 2005 Share Posted March 28, 2005 I would be carefull not to shutdown to early. You need to put a decent enough timeout on the shutdown so that Windows can load correctly the first time (which if it doesn't can cause error later)I use an over cautious 90 seconds. But I am usually away so it doesn't bother me.shutdown.exe -r -f -t 90 -c "Restarting in 90 seconds" Link to comment Share on other sites More sharing options...
purewaveform Posted March 28, 2005 Share Posted March 28, 2005 The example page http://unattended.msfn.org/global/examples.htm has how to do it and how to call it from runonce etc. I personally would recommend setting it something around a minute. If you find that this isnt enough time, for example if using the driver packs, then hit CTRL-ALT-DEL and start a new process CMD, then you can type shutdown -a which will cancel the current shutdown. then you can time it to see how much longer you need to make it. Link to comment Share on other sites More sharing options...
Navigator Posted March 29, 2005 Author Share Posted March 29, 2005 thank you very much for your help, all of you for your response and your suggestions, it worked and i am happy ps; if anyone has come up with a silent workaround for Microsoft Virtual PC service pack 1, please let me know. many thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now