Link to home
Create AccountLog in
Miscellaneous

Miscellaneous

--

Questions

--

Followers

Top Experts

Avatar of JK2429
JK2429

shutdown using batch file.
How can I create a batch file/exe file which will shutdown my computer at a inputted time?
I would like have the computer shut down at an inputted time.
Is this even possible?  I am running XP Pro.

Thnx

JK

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of gusdarinogusdarino

Hi JK2429,

Try the freeware app: Shutdown Machine 1.0 at: http://www.slaw.com.au/pmp/

You can also download it from cnet.com

GusDarino

Avatar of Pete LongPete Long🇬🇧



Shutdown.exe is available in the Microsoft Windows 2000 Resource Kit. It is a command-line tool that you can use to shut down or restart a local or remote computer that is running Windows 2000 or Windows NT 4.0. or XP  If you want to schedule a computer to shut down and restart at a specific time, use Shutdown.exe in combination with the at command or Task Scheduler.


HOW TO: Use the Remote Shutdown Tool to Shut Down and Restart a Computer in Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;317371

*****Software*****

PsShutdown is a command-line utility similar to the shutdown utility from the Windows 2000 Resource Kit, but with the ability to do much more. In addition to supporting the same options for shutting down or rebooting the local or a remote computer, PsShutdown can logoff the console user or lock the console (locking requires Windows 2000 or higher). PsShutdown requires no manual installation of client software.
http://www.sysinternals.com/ntw2k/freeware/psshutdown.shtml
Syntax: "psshutdown -u username -p password -r \\computername"

EMCO Remote Shutdown 1.4 is a Freeware utility to Shutdown/Reboot one or many machines on a NT network's. It works only under Administrator rights.
http://www.emco.is/remoteshutdown/rsdfeatures.html

Multi-Remote Shutdown Manager is an easy and fast way to shutdown the computers you administer
http://www.eytcheson.com/mrsm.htm

remote SHUTDOWN by Apteryx is a Windows Service that allows an administrator to logoff, shutdown* or reboot individual and/or grouped networked computers on demand from an easy to use interface. remote SHUTDOWN can also be used to route logoff, shutdown or reboot requests to individual or groups of other computers on the network also running remote SHUTDOWN
http://www.apteryxware.com/remoteshutdown/

FREEWARE
PowerOff
http://users.pandora.be/jbosman/applications.html
The new direct download link for poweroff 3.0 is:
http://users.pandora.be/jbosman/pwroff30.zip

Avatar of scampgbscampgb🇬🇧

Hi JK2429,

You could use Microsoft's "shutdown" command from the Win2000 resource kit.
Details can be found at http://support.microsoft.com/default.aspx?scid=kb;en-us;317371&sd=tech

You'd need a command like:
at 18:00 shutdown /l /y /c

Does that help?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of JK2429JK2429

ASKER

I have just been experimenting, if I use the command shutdown -s in the command prompt, I will  be able to shutdown in 30 seconds (like the blaster worm virus).  But I would like to execute a batch file which I would like to create on my computer to shutdown not in 30 seconds, but in the time I input.

ASKER CERTIFIED SOLUTION
Avatar of Steve McCarthy, MCSE, MCSA, MCP x8, Network+, i-Net+, A+, CIWA, CCNA, FDLE FCIC, HIPAA Security OfficerSteve McCarthy, MCSE, MCSA, MCP x8, Network+, i-Net+, A+, CIWA, CCNA, FDLE FCIC, HIPAA Security Officer🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of JesterTooJesterToo🇺🇸

This can be achieved by combining two commands that come natively with Win XP.... At and SHUTDOWN

Type  AT /?  and SHUTDOWN /? at a command prompt to get a quick review of the syntax for these commands.  Also, see these references for more in-depth explanations and examples.

   http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx
   http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

HTH,
Lynn

Avatar of JK2429JK2429

ASKER

Thank You!!

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


If you have IIS installed, you don't need to get any third-party or resource kit tools.  Just make a batch file with this one line:

iisreset /reboot

Use the task scheduler to schedule it however you want it.

use the shutdown -s command, but set it up in Windows Scheduled Tasks.  That way you can schedule what day and time / how often the task will occur.  Then use the -t argument just to set how many seconds warning time you'll have when it is shutting down.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Miscellaneous

Miscellaneous

--

Questions

--

Followers

Top Experts

A miscellany is defined as a "collection of various pieces of writing by different authors", but it has come to mean something "Of items gathered or considered together of various types or from different sources" or "a collection or group composed of members or elements of different kinds". The word "miscellaneous" comes from the Latin word "miscere", meaning "to mix." You might have heard the expression "a mixed bag," which applies when you don't quite know what you're going to get. More commonly, a miscellaneous group is made up of an odd group of things that don't fit anywhere else.