943,796 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Jan 22nd, 2008
0

Re: How to shutdown remote pc from DOS?

It has been brought to my attention that there is an error in teh programming for my previous post. This version seems to work a bit better:


Dim objShell, strComputer, strInput
Dim strShutdown

Do
strComputer = (InputBox(" ComputerName to shutdown", "Computer Name"))
If strComputer <> "" Then
strInput = True
End if
Loop until strInput = True

strShutdown = "shutdown -r -t 0 -f -m \\" & strComputer

set objShell = CreateObject("WScript.Shell")

objShell.Run strShutdown

Wscript.Quit

thanks,
Brandon

Click to Expand / Collapse  Quote originally posted by BPembo ...
Try this VBScipt. Copy and paste the below text in to notepad. then save it with the extension .vbs. Then when you double click it, it should give you an input box. What ever IP or PC name you enter there will be shut down!:

Sub RebootComputer( strServer )
Set objOSSet = GetObject("winmgmts:{(RemoteShutdown)}//" & strServer & "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")

For each objOS in objOSSet
objOS.Reboot()
Next
End Sub


' *************************************************************
' Main
' **************************************************************
Dim strComputer
Do
strComputer = inputbox( "Please enter the name of the computer you want to reboot", "Input" )
Loop until strComputer <> ""

RebootComputer( strComputer )

WScript.Echo( "Computer " & strComputer & " rebooted" )
Reputation Points: 10
Solved Threads: 1
Newbie Poster
BPembo is offline Offline
5 posts
since Nov 2007
Aug 25th, 2008
0

Re: How to shutdown remote pc from DOS?

which OS U R using.

for windows xp/2000/2k3 it worked

shutdown /s /m \\<system ip address> /t <time>

<time> : it should be in seconds. For example 2 min = 120
<ip address> : target system ip address

for any quries pls reply to : downloadsrk@yahoo.com
Reputation Points: 10
Solved Threads: 0
Newbie Poster
downloadsrk is offline Offline
1 posts
since Aug 2008
Nov 5th, 2008
0

Re: How to shutdown remote pc from DOS?

There are others ways to make easier remote shutdown in a machine network, follow this link to download Easy Net Control a network administrator tool that help you to easy shutdown, logoff, restart send messages, and instructions to remote machines.

http://enc.idraconnectivesolutions.com/
http://enc.idraconnectivesolutions.com/

Or

http://idraconnectivesolutions.com/enc/
http://idraconnectivesolutions.com/enc/

I hope that this could help you.
Reputation Points: 8
Solved Threads: 0
Newbie Poster
NetworkExpert is offline Offline
2 posts
since Nov 2008
Dec 24th, 2009
0
Re: How to shutdown remote pc from DOS?
Now great tool available in xp and server

this is "Shutdown -i

you can type in run and press ok

jst watch new windows screen

than added target pc ip address and click add

remove warn check box

and jst click to okay....with enter commant..like any think whick you want to show target on their windows......


jst okay and watch ...target face


use also monitoring command .....like netstat and ping target ip


ping -t gone means ....Target system is going to Sleep....means shutdown........


Enjoy fun ......Dont say Thanks////////Vishal G/////////////
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vishal G is offline Offline
1 posts
since Dec 2009
Feb 22nd, 2010
0

PSTools

Try PSShutdown.exe from PSTools from SysInternals.
Works great on all windows.
http://technet.microsoft.com/en-us/s.../bb897541.aspx

HTH

carsbe1
Reputation Points: 10
Solved Threads: 0
Newbie Poster
carsbe1 is offline Offline
1 posts
since Feb 2010
Jul 8th, 2010
0

Depends

It depends on what exactly you want to do, if you want to remotely shutdown the computers just go to the command prompt and type "shutdown -i". It will bring an interface on which PCs are connected and you could shutdown all the PCs simultaneously.Easy aint it!!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rhapsodykelz is offline Offline
1 posts
since Jul 2010
Jul 9th, 2010
0
Re: How to shutdown remote pc from DOS?
I know that you can shutdown computer with a command like shutdown - .. But I don't really remember what is that. Just going to CMD and type shutdown /help and find out more.
Reputation Points: 10
Solved Threads: 3
Newbie Poster
anhbloginc is offline Offline
11 posts
since Apr 2010
Dec 9th, 2010
0
Re: How to shutdown remote pc from DOS?
Why does none of these shutdown commands work, although I can ping the network/remote PC successfully - I have admin rights on that PC and pn same OS etc.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
PiesangPrins is offline Offline
1 posts
since Dec 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Windows NT / 2000 / XP Forum Timeline: Installing Python on HP Pavilion
Next Thread in Windows NT / 2000 / XP Forum Timeline: desktop went blank





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC