Sinisterly
shutdown a remote computer by ip - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: shutdown a remote computer by ip (/Thread-shutdown-a-remote-computer-by-ip)



shutdown a remote computer by ip - allan - 06-13-2011

shutdown -s -t 05 -c "hi your com is shutting down "
save as bat and sent to yout friend Smile


RE: shutdown a remote computer by ip - Kyun0 - 06-16-2011

I haven't tried this yet but does it prompt a confirmation?

If not, it could be pretty funny to make a reg key that runs it on startup.


RE: shutdown a remote computer by ip - blowdoof - 06-16-2011

I've once written a vbs for this.. handy when using rdp or something similar...
Well, here's the code:

strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Win32Shutdown(1)
Next


You can try & play with the strComputer var as well Smile

Happy coding


RE: shutdown a remote computer by ip - Joesf - 07-07-2011

Its always good to involve the -f command aswell, as this will force the shutdown, if anythings still happening.

Also, always set a time because default is 1min i think and im pretty sure you can only do it in seconds.

Always good for making a pc switch off timer: shutdown -s -f -t 3600

Good share, wasn't aware of the -c feature xD


RE: shutdown a remote computer by ip - Mastermrz - 07-12-2011

Where do you put the IP address?


RE: shutdown a remote computer by ip - allan - 07-13-2011

u can get the ip address at cmd , type tracert.....


RE: shutdown a remote computer by ip - H4CK5 - 07-26-2011

shutdown -s -t 05 -c "hi your com is shutting down " \m xxx.xxx.xx.xx

insert ip address after \m and you can shut them down..works only if your computer is connected to them like lan or if they connect to your server


RE: shutdown a remote computer by ip - devilnoe - 07-27-2011

good share.. use angry ip scanner for searching ip address..


RE: shutdown a remote computer by ip - VirusHacker - 07-29-2011

(06-13-2011, 10:00 AM)allan Wrote: shutdown -s -t 05 -c "hi your com is shutting down "
save as bat and sent to yout friend Smile

what is it that you call the to shutdown the computer via ip address?


it seems you do not need to use ip address to do that I think is stupid enough to do on your own computer.

:offtopic: