command line shutdown

  • Thread starter Thread starter Rhizome
  • Start date Start date
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
 
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
 
Back
Top