| | |
How to shutdown remote pc from DOS?
Thread Solved |
•
•
Join Date: Mar 2004
Posts: 1,620
Reputation:
Solved Threads: 51
Hello,
Really depends on what OS your end users are working with on their computers. Windows 2003 Server, for example, has a shutdown command, that you can place a timer on and, work with. I don't think it has a place for a message, as interactive logins are not common on servers, unless you are running Terminal Services / Citrix. If you are running those applications, then you can message others using management tools contained within.
Looking at the problem from a network administration viewpoint, however, I do not like the idea of someone in another room just triggering a shutdown on me. I could be on a call supporting a customer, or I could be in a meeting and unable to save my data. Then again, you may have to decide to "amputate" that one user for the benifit of the greater good. If this becomes habit, you have other problems!
There is also a way to use the shutdown command across a network
shutdown /i
from a 2003 Server will give you a dialog box where you can add computers, give the users a warning of what you are up to. You would not be able to script this.
There is also
shutdown /r /m \\computername /t seconds /f {force shutdown, no warning}
If I were you, I would consider a remote control tool, such as VNC, that you can remotely trigger the service, and then login to the computer and see what the user is doing. Better manners suggest that you email or schedule the downtime, so that your users can plan for the event.
Christian
Really depends on what OS your end users are working with on their computers. Windows 2003 Server, for example, has a shutdown command, that you can place a timer on and, work with. I don't think it has a place for a message, as interactive logins are not common on servers, unless you are running Terminal Services / Citrix. If you are running those applications, then you can message others using management tools contained within.
Looking at the problem from a network administration viewpoint, however, I do not like the idea of someone in another room just triggering a shutdown on me. I could be on a call supporting a customer, or I could be in a meeting and unable to save my data. Then again, you may have to decide to "amputate" that one user for the benifit of the greater good. If this becomes habit, you have other problems!
There is also a way to use the shutdown command across a network
shutdown /i
from a 2003 Server will give you a dialog box where you can add computers, give the users a warning of what you are up to. You would not be able to script this.
There is also
shutdown /r /m \\computername /t seconds /f {force shutdown, no warning}
If I were you, I would consider a remote control tool, such as VNC, that you can remotely trigger the service, and then login to the computer and see what the user is doing. Better manners suggest that you email or schedule the downtime, so that your users can plan for the event.
Christian
in windows 2000 you can shutdown, restart computers on a network with right click on my computer and select manage,then right click on computer management,and then click connect to another computer, choose which computer from the list, select it and then right click on computer management again choose properties click on the advanced tab click on startup and recovery, click on shutdown you can choose different options. in there.
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Solved Threads: 1
On complex networks where is used different Windows version it can be used third party software with client-server architecture like RSHUT Pro (www.rshut.com).
Last edited by al_v; Nov 18th, 2007 at 8:34 am. Reason: wrong autolinking
•
•
Join Date: Nov 2007
Posts: 5
Reputation:
Solved Threads: 1
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" )
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" )
![]() |
Similar Threads
- i can't shutdown my remote computer in the network (Networking Hardware Configuration)
- help me to configure my network to shutdown my remote PC (Windows NT / 2000 / XP)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: Net Access Restricter
- Next Thread: ftp problem in winxp system
| Thread Tools | Search this Thread |
.net 64bit 2007 2010 a.exe address apache appstore arm automatically black blue book bsod bulletin canonical cellphones codeplex computer crash cursor deployment deployments desktop desktops dns dotnetnuke drive eartlink error errors explorer fax features folder fontmanagers format framework freeze hardware home internet interoperability killprocess laptop linux load login mac memory microsoft monitor motionle1600 netbooks novell nvidia open operatingsystems options osx palm patch printer product program proxy reformat remotedesktop repair replacingraiddrive retail retrieve screen security sharepoint simplifiedchinese sitetositevpn slowperformance technology unreadable update usb verizon videodrivers videogames virus vista visual vpn vulnerability wab win win32/heur windows windows7 windowsxp windowsxpnotstartingup. worm xp xpde






