command line shutdown

R

Rhizome

is there a command line shutdown option with 2000 as with unix (i.e.
shutdown -r now, etc., halt)??

the reason is b/c the clunkers won't save registry properly unless you stop
the print spooler prior to shutdown. i've applied service pack 4 and still
it doesn't work properly. Userenv 1000 error in event log - Windows was
unable to unload your registry etc.[2195] or some shit like that. I did find
a fix on microsoft's web site specifically for this problem but the geniuses
didn't consider that i'd be getting a window popping up every 5 minutes
telling me windows has unknown file versions and to insert the Windows 2000
Professional CD.

so a simple script for shutdown would be

@echo off
NET STOP "Print Spooler"
<<insert shutdown command line here>>
echo System is shutting down....

please let me know if you have the line "<< >>" or an easier foolproof
once-and-for-all solution

warmest regards

ryan
 
J

James Williams

Nothing major. There's a utility (free DL from MS) called Shutdown.exe.
Will do shutdowns, restarts. Very nice. Even do them remotely (so
you don't have to shell into your boxes before you 'shutdown -r now' on
people).

(j)
James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top