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
 
What worked for me is to create a logoff script (not a
shutdown script) in the Group Policy editor (gpedit.msc).
Add the command NET STOP SPOOLER to the script. Command
line shutdown is not necessary.
 
Mike - that worked (although a pain in the ass) and I'm sure I'll lose that
in my notes but thanks anyway.

Thanks again,

Ryan


Mike D said:
What worked for me is to create a logoff script (not a
shutdown script) in the Group Policy editor (gpedit.msc).
Add the command NET STOP SPOOLER to the script. Command
line shutdown is not necessary.
-----Original Message-----
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


.
 
Shutdown, and lots of other funky stuff such as reboot, logoff, or any of
them as forced action, can be done with scripts using Win32_Shutdown method
through WMI. You can get examples in technet scripting center.

--
Dmitry Korolyov
(e-mail address removed)
To e-mail me, remove "nospamformorons"
from the address.


ariel said:
You can use shutdown.exe from the reskit or psshutdown
from sysinternals...free download.

-----Original Message-----
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


.
 
Back
Top