Translate

Tuesday, June 10, 2014

•How to shutdown someone elses computer using command prompt

 To shutdown a remote machine, you have to enter following command in command prompt on the computer your are using. 

c:\> shutdown -m \\comp_name -s 


Shutdown - This is the command u use to shutdown/restart/etc 

-m - It means remote computer. 
\\comp_name - This is the computer name which you want to shutdown 
-s - You have to enter this command (-s = Shutdown, -r = Restart, -l = Logoff, -a = Abort shutdown) 

You will need to know the 'name' of the remote computer, but you may be able to get this by looking in Network Neighborhood or My Network Places/Entire Network, or you can use 'net use' command in your command window to see the computer names in your network.


FOR LAN :


1)Open the command prompt. This may be done by clicking on the "Start" button, and selecting "Run".


2)Type in cmd and press Enter.


3)Type in shutdown -m \\computername, replacing "computername" with the name of the computer you wish to shutdown or the computer's IP address.


4)Experiment with the shutdown command's switches.



  • -r will force a restart, disabling any services or user interaction from interrupting it.
  • -c "comment" will force a comment to appear on the system being shutdown.
  • -t xx will force a timeout for "xx" seconds. For example, -t 60 would perform a shutdown after a 60-second timeout.
  • -a will abort the shutdown.
  • A full command example: shutdown -m \\myserver -r -c "This system will shutdown in 60 seconds" -t 60
5)Try another method:
  • Type shutdown -i in the run window.
  • Click the "Add" box and type the name of the computer you want to shutdown or its IP address. You can select what you want the computer to do.
  • In this mode, it's necessary to add a comment. Do so.
  • Press OK.
*MUST SHARE*


2 comments: