answersLogoWhite

0

To create a batch command that shuts down a Windows computer, you can use the following command in a text file with a .bat extension:

shutdown /s /t 0

This command initiates a shutdown (/s) with a timeout of 0 seconds (/t 0), meaning the shutdown will occur immediately. You can save this command in a .bat file and run it to shut down your computer.

User Avatar

AnswerBot

2w ago

What else can I help you with?

Related Questions

How can we Shut down client computer from server?

To shut down WindowsXP computers from a Windows2003 Server use the "shutdown" command. The shutdown command can be run as part of a batch script, or interactively with "shutdown -i" A good starting point is http://www.computerperformance.co.uk/w2k3/shutdown.htm


What dos command should use to shutdown computer at 6.45 pm?

To schedule a shutdown of your computer at 6:45 PM using the command prompt, you can use the following command: shutdown -s -t 0 However, to set it for a specific time, you will need to combine it with the Task Scheduler or create a batch file. Alternatively, you can use the command at 18:45 shutdown -s after enabling the Task Scheduler service if you are on an older version of Windows.


Why is shutdown -1 not working on my PC?

Shutdown -1 is not a correct command for shutting down. Open a command line... Start >> Run... >> cmd >> ENTER Then type: shutdown /h (shutdown) shutdown /r (restart) shutdown /l (log off) shutdown /? (more info on shutdown)


How you shutdown a computer through command line on other computer while both PC are on the different network or same network DurbanPoizin?

Shutdown over Network... You can simply go to the computer on the network through the command prompt and type: Shutdown -s This will turn your computer off in 60 seconds to stop this just type: Shutdown -a There are many more options to the Shutdown command.


What command activates an interface?

no shutdown


How you shutdown a computer through command line other computer in same network?

Yes shutdown <computer IP shutdown>


How do you send commands to a command-line EXE program from a batch?

Just put the commands in your batch file. When someone runs the program, it will execute the commands it comes across line-by-line. - Example Batch Script: This script will run an application EXE file with command line parameters. This will use the shutdown.exe file that comes with windows. It shuts down the computer in 60 seconds. @shutdown -s -t 60 - You could also use the START command. For any command or exe file that runs from the command line, you could open a command prompt and type the name of the file followed by /? to find out what you can use as command parameters. Example: START /?


What is the command to turn off Linux?

Virtually all Linux distributions will accept the "halt" command. Some also have a shutdown command, though this has additional parameters and is meant mainly to shut down the system at a certain time.


How to write batch file to shut down windows2000?

1. Open Notepad 2. Type the following: shutdown -s 3. Save the file as <<filename>>.bat Ex: shut.bat 4. Run the batch file to shutdown the PC. In case you want to restart, type "shutdown -r" Thanks Kiran


What is the command to reboot an AIX server?

shutdown -Fr


What does the command no shutdown do on a Cisco device?

Enables the interface.


Does Putty exe allow you to remotely startup or shutdown the computer you are connected with?

Yes you can.Once connected you need to login as root using sudo or su - command. Type the following command to shutdown remote system: # shutdown -h now OR # /sbin/shutdown -h now To reboot the system, enter: # shutdown -r now OR # /sbin/reboot