Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Remotely restart or shutdown computer using IP address


  • Please log in to reply
12 replies to this topic

#1 nickautomatic

nickautomatic

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 04:02 PM

How to remotely shutdown or restart computer using IP address through CMD?



BC AdBot (Login to Remove)

 


#2 Nikhil_CV

Nikhil_CV

    Vestibulum Bleep


  • Members
  • 1,145 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:err: Destination unreachable! bash!
  • Local time:12:06 AM

Posted 24 January 2015 - 04:08 PM

Hi,
Use the 'shutdown' command.
You may refer to the help section there using shutdown ?/
I think it works only for private IPs which can be accessed from the computer you use.
Firewall may block such attempts...
Regards : CV                                                                                                    There is no ONE TOUCH key to security!
                                                                                                                                       Be alert and vigilant....!
                                                                                                                                  Always have a Backup Plan!!! Because human idiotism doesn't have a cure! Stop highlighting!
                                                     Questions are to be asked, it helps you, me and others.  Knowledge is power, only when its shared to others.            :radioactive: signature contents © cv and Someone....... :wink:

#3 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 04:10 PM

Let me try it. What's the exact command to do it?



#4 Nikhil_CV

Nikhil_CV

    Vestibulum Bleep


  • Members
  • 1,145 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:err: Destination unreachable! bash!
  • Local time:12:06 AM

Posted 24 January 2015 - 04:35 PM

Hey, why dont you give a visit to the following posts? They will be surely of help.
http://stackoverflow.com/questions/162304/how-do-i-shutdown-restart-logoff-windows-via-bat-file
https://technet.microsoft.com/en-in/library/bb491003.aspx (instead of computer name {myserver} use the ip address)
http://www.online-tech-tips.com/computer-tips/remote-shutdown-command/
Tryout! :)
Regards : CV                                                                                                    There is no ONE TOUCH key to security!
                                                                                                                                       Be alert and vigilant....!
                                                                                                                                  Always have a Backup Plan!!! Because human idiotism doesn't have a cure! Stop highlighting!
                                                     Questions are to be asked, it helps you, me and others.  Knowledge is power, only when its shared to others.            :radioactive: signature contents © cv and Someone....... :wink:

#5 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 05:22 PM

Thanks CV. Will sure try it.



#6 Nikhil_CV

Nikhil_CV

    Vestibulum Bleep


  • Members
  • 1,145 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:err: Destination unreachable! bash!
  • Local time:12:06 AM

Posted 24 January 2015 - 05:30 PM

Good luck... :)
Regards : CV                                                                                                    There is no ONE TOUCH key to security!
                                                                                                                                       Be alert and vigilant....!
                                                                                                                                  Always have a Backup Plan!!! Because human idiotism doesn't have a cure! Stop highlighting!
                                                     Questions are to be asked, it helps you, me and others.  Knowledge is power, only when its shared to others.            :radioactive: signature contents © cv and Someone....... :wink:

#7 Kilroy

Kilroy

  • BC Advisor
  • 3,391 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:01:36 PM

Posted 24 January 2015 - 07:00 PM

Replace the 192.168.1.100 with the IP address you want to shutdown.  You have to have administrative rights on the machine you want to shut down.

SHUTDOWN /m \\192.168.1.100 /s /t 30 /c "Time to go to bed"


#8 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 07:04 PM

Nice one Kilroy. It worked. It's fun!



#9 Kilroy

Kilroy

  • BC Advisor
  • 3,391 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Launderdale, MN
  • Local time:01:36 PM

Posted 24 January 2015 - 07:46 PM

Change the /s to /r for a restart.  I used to use it to turn off my son's machine.



#10 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 07:48 PM

Brilliant!



#11 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 08:22 PM

Usage: [-i : -l : -s : -r : -a] [-f] [-m \\computer name] [-t xx] [-c "comment"] [-d up:xx:yy]


What does [-d up:xx:yy] mean or what is this for? How can it be applied in given sample?



#12 Nikhil_CV

Nikhil_CV

    Vestibulum Bleep


  • Members
  • 1,145 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:err: Destination unreachable! bash!
  • Local time:12:06 AM

Posted 24 January 2015 - 09:47 PM

Hi,
As per https://technet.microsoft.com/en-in/library/bb491003.aspx ,

"-d[u][p]:xx:yy:Lists the reason code for the shutdown. The following table lists the different values."

and

"Examples
To shut down \\MyServer in 60 seconds, force running applications to close, restart the computer after shutdown, indicate a user code, indicate that the shutdown is planned, log major reason code 125, and log minor reason code 1, type:
shutdown -r -f -m \\MyServer -t 60 -d up:125:1"

Technet and MSDN lib is always a good stop ref. :)
Regards : CV                                                                                                    There is no ONE TOUCH key to security!
                                                                                                                                       Be alert and vigilant....!
                                                                                                                                  Always have a Backup Plan!!! Because human idiotism doesn't have a cure! Stop highlighting!
                                                     Questions are to be asked, it helps you, me and others.  Knowledge is power, only when its shared to others.            :radioactive: signature contents © cv and Someone....... :wink:

#13 nickautomatic

nickautomatic
  • Topic Starter

  • Members
  • 143 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:03:36 AM

Posted 24 January 2015 - 10:05 PM

All right. Thanks for the information.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users