How to shutdown remote pc from DOS?

Thread Solved
Reply

Join Date: Nov 2007
Posts: 5
Reputation: BPembo is an unknown quantity at this point 
Solved Threads: 1
BPembo BPembo is offline Offline
Newbie Poster

Re: How to shutdown remote pc from DOS?

 
0
  #11
Jan 22nd, 2008
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

Originally Posted by BPembo View Post
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" )
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1
Reputation: downloadsrk is an unknown quantity at this point 
Solved Threads: 0
downloadsrk downloadsrk is offline Offline
Newbie Poster

Re: How to shutdown remote pc from DOS?

 
0
  #12
Aug 25th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: NetworkExpert is an unknown quantity at this point 
Solved Threads: 0
NetworkExpert NetworkExpert is offline Offline
Newbie Poster

Re: How to shutdown remote pc from DOS?

 
0
  #13
Nov 5th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Windows NT / 2000 / XP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC