Blogger Widgets

How can I remotely shutdown another Windows computer?

Microsoft Windows 2000, XP (XP home users read section below) and later users can remotely shutdown another computer in their network by utilizing the shutdown command. To start the GUI version of this command click Start, Run, and in the Run line type: shutdown -i and press enter. After running this command you should see a dialog window shown in the example below.
Windows Remote Shutdown Dialog window
As can be seen in the example above, you'll have several different options to choose from in the Remote Shutdown Dialog.  First specify the name or IP address of the computer you wish to shutdown by clicking the Add button. Next, select Shutdown and keep the Warn users of the action checked if you wish to warn the user of the shutdown before it occurs. Next, in the Shutdown Event Tracker, choose the Option you wish the Event Log to show and enter a comment.
For Windows Home computers
If the remote computer you're attempting to shutdown is running Microsoft Windows Home. You'll need to enable guest remote shutdown privileges before following the above steps will work. To do this follow the below steps.
  1. Download the Windows Resource Kit to the computer you're wanting to remotely shutdown.
  2. Once downloaded and installed, copy the NtRights.exe file from the "Program Files\Windows Resource Kits\Tools" directory into the "Windows\System32" directory.
  3. After the file has been copied open a command prompt window by clicking Start, Run, and typing cmd and pressing enter. At the prompt type the below commands exactly as you see them here (unless your Windows directory is in a different path).

    cd\windows\system32
    NtRights –u Guest +r SeRemoteShutdownPrivilege
    NtRights –u Guest +r SeShutdownPrivilege
  4. If successful after typing each of the above two NtRights commands you should get a success message. Once this has been completed, exit the command prompt window and restart your computer.
Once the above steps have been completed, you should be able to remotely shutdown that computer from another Windows computer.
Unable to get remote shutdown to work
This could be caused by any of the below possibilities.
  1. The domain administrator has group policies in place to prevent remote shutdown.
  2. Remote administration or the $ADMIN share is disabled.
  3. You're logged into an account that does not have administrative privileges.
Alternative solutions
If you're still unable to get the shutdown to work properly, or wish to remotely shutdown earlier versions of Windows such as Windows 98, there are dozens of other utilities that can be installed to allow you to do this. Our alternative recommend solutions are PowerOff and PsShutdown.exe, which is part of the free PsTools suite.

Posted by
NIBIL PN

More

How to shut down or restart the computer with a batch file

Windows Vista, 7, and 8 users


Microsoft Windows Vista, 7, and 8 includes a similar shutdown command feature that XP did to shutdown the computer through the command line, shortcut, or batch files. Below are the steps required for creating a shutdown, restart, and hibernate shortcut.
1. Create a new shortcut.
2. For the location of the shortcut type one of the below commands depending on what you want to do.
To shut down your computer type the below line in the location.
shutdown.exe /s /t 00
To restart the computer type the below command in the location.
shutdown.exe /r /t 00
To hibernate the computer type the below line in the location.
shutdown.exe /h
3. Click Next, and then for the name of the shortcut type either Shut down or Hibernate and then click Finish.
Once the above steps have been completed double-clicking on the new shortcut will shut down the computer or put it into hibernation.
Additional information and options about the shutdown command can be found on the shutdown command page.

Windows XP users

Microsoft Windows XP includes a new shutdown command that will enable a user to shutdown the computer through the command line, shortcut, or batch files. Below are the steps required for creating a shutdown and restart shortcut.
2. For the location of the shortcut type one of the below commands depending on what you want to do.
To shut down your computer type the below line in the location.
shutdown.exe -s -t 00
To restart the computer type the below line in the location.
shutdown.exe -r -t 00
3. Click Next, and then for the name of the shortcut type either Shut down or Hibernate and then click Finish.
Once the above steps have been completed double-clicking on the new shortcut will shut down the computer or put it into hibernation.
Additional information and options about the shutdown command can be found on the shutdown command page.

Windows 95, 98, and ME users

Restarting the computer
START C:\Windows\RUNDLL.EXE user.exe,exitwindowsexec
exit
Shut down the computer
C:\Windows\RUNDLL32.EXE user,exitwindows
exit
Note: When typing the above two lines, spacing is important. It is also very important that the exit line be placed into the batch file as many times Windows may be unable to restart the computer because of the open MS-DOS window.
Microsoft Windows 98, and Windows ME users can also run the below command to perform different forms of rebooting or shutting down.
rundll32.exe shell32.dll,SHExitWindowsEx n
Where n is equal to one of the below numbers for the proper action.
  • 0 - LOGOFF
  • 1 - SHUTDOWN
  • 2 - REBOOT
  • 4 - FORCE
  • 8 - POWEROFF
MS-DOS users
If the computer needs to be restarted from MS-DOS, see the debug page for additional information on how to do this.

Posted by
NIBIL PN

More

Examples

Note: As may or may not be apparent by reviewing the above syntax the earlier version of the shutdown command uses a dash (-) instead of forward slash (/) for the options.

shutdown -r -c "Rebooting for latest updates

This would display a Windows System Shutdown window for 30 seconds, warning the user that the computer is going to shutdown and then restart the computer.

shutdown -i

Ran from either the command line or from the Windows run line this option would open the remote shutdown dialog Window. Additional information on remotely shutting down another Windows computer.

shutdown /h

Place the computer in hibernation mode in Windows Vista, 7, or 8.

Posted by
NIBIL PN

More

Shutdown Windows XP Syntax

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u] [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)

Posted by
NIBIL PN

More

Shutdown Windows 7 and 8 Syntax

Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f] [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
No args Display this message (same as -?)
/i Display the graphical user interface (GUI).
This must be the first option.
/l Log off. This cannot be used with /m or /d options.
/s Shutdown the computer.
/r Shutdown and restart the computer.
/g Shutdown and restart the computer. After the system is rebooted, restart any registered applications.
/a Abort a system shutdown. This can only be used during the time-out period.
/p Turn off the local computer with no time-out or warning. Can be used with /d and /f options.
/h Hibernate the local computer. Can be used with the /f option.
/e Document the reason for an unexpected shutdown of a computer.
/m \\computer \\computer Specify the target computer.
/t xxx Set the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the timeout period is greater than 0, the /f parameter is implied.
/c "comment" Comment on the reason for the restart or shutdown. Maximum of 512 characters allowed.
/f Force running applications to close without forewarning users. The /f parameter is implied when a value greater than 0 is specified for the /t parameter.
/d [u] [p]:xx:yy Provide the reason for the restart or shutdown.
p indicates that the restart or shutdown is planned.
u indicates that the reason is user defined.
If neither p nor u is specified the restart or shutdown is
unplanned.
xx is the major reason number (positive integer less than 256).
yy is the minor reason number (positive integer less than 65536).

Posted by
NIBIL PN

More
Powered by Blogger.

Copyright © / Shut down

Website by : Nibilworld / powered by :blogger