Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Schedule Shutdown Problem

Status
Not open for further replies.

PakUser786

Programmer
Nov 14, 2007
2
PK
Dear all

I m using OS windows 2000 server family
I want to schedule shutdown when i m using shutdown.exe command in the bat file, my computer not completely shoutdown, return screeen "ITS NOW SAFE TO TURN OFF YOUR COMPUTER". I need Power off automaticaly after shutdown.

anybody have solution for me

I m very thankful to all members

 
You need to check the power management settings i have some older stations that if you don't anable APM they sit there with that message. I haven't encountered any more recent machines that do that but it's woth checking.
 
Also it depends on what options are you using in the shutdown command. shutdown /s will shutdown/power off, /r for reboot.
 
Dear all

but my Computer is completely shutdown when I m using Shutdown button thats means APM is enable.
When I m using Shutdown /L command in the batch file its shutdown and returns "ITS NOW SAFE TO TURN OFF YOUR COMPUTER". and not turns power off

anybody help me

I m very thankful to all members
 
Don't use /L Try this in your batch file:

shutdown -s -t 0 -f

Good luck,
 
Or use WMI.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top