Login Register






shutdown a remote computer by ip filter_list
Author
Message
shutdown a remote computer by ip #1
shutdown -s -t 05 -c "hi your com is shutting down "
save as bat and sent to yout friend Smile

Reply

RE: shutdown a remote computer by ip #2
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.

Reply

RE: shutdown a remote computer by ip #3
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

Reply

RE: shutdown a remote computer by ip #4
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

Reply

RE: shutdown a remote computer by ip #5
Where do you put the IP address?

Reply

RE: shutdown a remote computer by ip #6
u can get the ip address at cmd , type tracert.....

Reply

RE: shutdown a remote computer by ip #7
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

Reply

RE: shutdown a remote computer by ip #8
good share.. use angry ip scanner for searching ip address..

Reply

RE: shutdown a remote computer by ip #9
(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:
:bye:

Reply