How to use the remote shutdown command in Windows如何使用遠程關機命令在Windows
Posted on May 26, 2008 at 5:31 am張貼於2008年5月26日在上午05時31分
This article will show you how to use the remote shutdown command tool in Windows to remotely shut down, restart, or logoff a local or networked computer.本文將向您展示如何使用遠程關機命令的工具,在Windows遠程關機,重新啟動或註銷本地或網路連線的電腦。 This can be very useful sometimes if you have multiple computers at home or on your network that you want to quickly shutdown or restart.這可以非常有用,有時如果您有多個電腦在家裡或在您的網絡上,你想要快速關機或重新啟動。
You can perform a remote shutdown from the command prompt using the shutdown command and it’s associated switches, from the remote shutdown dialog box, or from a batch file.您可以執行遠程關機從命令提示符使用shutdown命令和它相關的開關,從遠程關機對話框中,或從一個批處理文件。 I’ll try to go through all three in this guide.我會嘗試去通過所有這三個在本指南。
Remote Shutdown Overview遠程關機概述
Firstly, in order to remotely shutdown a computer on your network, you’ll need to make sure you have Administrative access to that computer.首先,為了遠程關機您網路上的電腦,您需要確保您有管理權限的計算機。 If you’re on a home network, the best way to do this is to make sure all computers are in the same workgroup and that they all have at least one Administrator account with the same user name and password.如果您對家庭網絡,最好的方法做這是為了確保所有計算機都在同一工作組和他們都至少有一個管理員帳戶具有相同的用戶名和密碼。
You can also have different Administrator account names across computers, but then you’ll need to make sure you add the Administrator account of one computer to the account list on the other computers.您也可以有不同的管理員帳戶的名稱多台電腦,但接著,您需要確保您添加管理員帳戶的一台計算機的帳戶名單上的其他電腦。 You’ll also need to know all the names of the other computers on the network.您還需要知道所有的姓名,該網絡上的其他計算機。 You can do that by going to Control Panel and then clicking on System .你可以這樣做,去控制面板 ,然後點擊系統 。 Then click on the Computer Name tab.然後按一下計算機名稱選項卡。
Remote shutdown is useful for managing multiple computers at once and especially useful for helpdesk technicians when they have to fix remote computers.遠程關機是有用的管理多台計算機在一次特別有用求助技術員當他們有固定的遠程計算機。
Remote shutdown via Command Prompt遠程關機通過命令提示符
The shutdown command is most flexible when using it from the command prompt because you can add a bunch of switches to it, which allow you to customize the behavior. shutdown命令是最靈活的,當用它從命令提示符,因為您可以添加一群切換到它,這可讓您自訂的行為。 Go to Start , then Run , and type in CMD .轉到開始 ,然後運行 ,並鍵入在cmd 。 In the black command window, type in shutdown /? to see the list of switches.在黑色命令窗口中,鍵入在關機/ ?看到名單開關。
You have to use at least one switch in order for the command to do anything.你必須至少使用一個開關,以便為命令做任何事情。 Basically you would type in shutdown -X -Y -Z where X, Y, Z are letters in the list above.基本上您可以在其中輸入在關機的X - Y - Z的情況下的X , Y , z是信在上述清單。
Here are a couple of the most command switches and what actions they peform:這裡有一對夫婦的最指揮開關和採取何種行動,他們peform :
-l: Logs off the computer -升:註銷計算機
-s: Shuts down the computer - S的:在電腦關機
-r: Restarts the computer - R的:重新啟動計算機
-m -米 \\computername \ \計算機 : remote shutdown of a computer :遠程關機的電腦
-f: Forces programs to close immediately - F :在部隊的計劃立即關閉
So for remotely shutting down another machine on your network, you would type into the command prompt the following commands:因此,遠程關停另一台機器在您的網路上,您可以在其中輸入到命令提示符以下命令:
shutdown –m \\computername –r –f 關機米\ \計算機- R的- F的
This above command will restart the computer named computername and force all programs that are still running to die.這上述命令將重新啟動電腦,命名為計算機和部隊的所有程序仍在運行死亡。
shutdown –m \\computername –r –f –c “The computer will restart, please save all work.” –t 60 關機米\ \計算機-的R -的F - C “的計算機將重新啟動,請保存所有工作” 。 - 60噸
This command will restart the computer named computername , force all programs that are running to die, show a message to the user, and countdown 60 seconds before it restarts.此命令將重新啟動電腦,命名為計算機 ,迫使正在運行的所有程序,以模具,顯示訊息給使用者,倒數60秒,才重新啟動。
Remote Shutdown via Shutdown Dialog遠程關機通過關機對話框
If you don’t like all those switches, etc, or using the command prompt, then you can bring up the shutdown dialog box.如果你不喜歡所有這些開關等,或使用命令提示符下,那麼你就可以帶出關機對話框中。 You can open the dialog window by clicking Start, click Run, type CMD and typing shutdown -i and in the blank DOS window.您可以打開對話窗口單擊開始,單擊運行,鍵入cmd和打字關機,我和在空白DOS窗口。
A window similar to the one below will appear:一個窗口,一個類似下面會出現:
Click the Add or Browse button to add computers to the list.單擊添加或瀏覽按鈕來添加電腦到清單中。 You can then run the commands on the entire batch of computers.然後,您就可以執行命令,對整個一批電腦。 If you click Add, you’ll need to enter in the network name of the computer in the format如果您單擊添加,您需要輸入在網絡中的計算機的名稱,在格式 \\computername \ \計算機 . 。 You can even add your own computer to test it out and make sure it works.您甚至可以添加您自己的電腦上測試出來,並確保工程。
Of course, you need to know the actual computer name, which I mentioned how you can figure out above.當然,您需要知道實際的計算機名稱,我剛才提及的如何,您可以計算出以上。 You’ll also need Administrative access.您還需要管理權限的。 You can determine this by going to My Computer and typing您可以判斷這是由去我的電腦和打字 \\computername \ \計算機 into the address bar and seeing if you can get access without having to be prompted for a password.在地址欄看到,如果您可以獲取而不被提示輸入密碼。
So add as many computers to the list as you like and then set your options.因此,新增許多電腦名單如你所願,然後設定您的選項。 You can shutdown, restart, or logoff.您可以關機,重新啟動或註銷。 You can also display a warning for however many seconds you like.您也可以顯示一個警告,但許多秒你喜歡。 You can type in a comment at the bottom which will be displayed to users.您可以輸入評論在底部將顯示給用戶。 That’s it!這樣就大功告成了!
Remote Shutdown via Batch File遠程關機通過批處理文件
Finally, you can create a batch file so that you can do all of this by just clicking on a file!最後,您可以創建一個批處理文件,這樣您可以做的這一切,只要點擊一個文件! Or you can even schedule the batch file to be run at specific intervals using Windows Scheduler.或您甚至可以如期批處理文件來運行在特定的時間間隔使用Windows調度程序。
Just go to Notepad and type in the commands you would have typed into the command prompt:只要到記事本在類型和命令,您將輸入的命令提示符:
shutdown –m 關機米 \\computername1 \ \ computername1 –r - R的
shutdown –m 關機米 \\computername2 \ \ computername2 –r - R的
shutdown –m 關機米 \\computername3 \ \ computername3 –r - R的
This will restart three computers on my home network.這將重新啟動三台電腦對我的家庭網絡。 You would of course replace computername1 with the actual names of your computers.你當然會取代computername1與實際的名稱,您的計算機。 Then simple save the file with a .BAT file extension.然後簡單的檔案儲存與一。 bat文件擴展名。 You can put as many commands into the batch file as you like, so feel free to experiment!您可以把許多命令到批處理文件如你所願,您可以隨意實驗!
I’ve written an extensive post on我寫了廣泛的郵政對 how to use batch files in Windows 如何使用批處理文件在Windows , so read that if you are not familiar with batch files. ,因此,閱讀,如果你不熟悉的批處理文件。 Enjoy!享受!
Technorati Tags: Technorati標記: remote shutdown遠程關機 , , remote shutdown command遠程關機命令 , , remote windows shutdown遠程Windows關機 , , remote windows xp shutdown遠端Windows XP關機 , , network remote shutdown網絡遠程關機 , , remote computer shutdown遠程計算機關機If you enjoyed this post, make sure you 如果您喜歡這個職位,請務必 subscribe to my RSS feed 訂閱我的RSS饋送 ! !
» Filed Under »提交下 Computer Tips電腦提示
Related Posts相關文章
- How to setup Remote Desktop on Windows XP如何安裝遠程桌面在Windows XP
- How to navigate in the DOS command prompt如何瀏覽,在DOS命令提示符
- NirCmd - Free command line tool for Windows XP and Vista nircmd -免費命令行工具用於W indowsX P和V ista
- How to access Mac files on a Windows PC如何訪問Mac文件在Windows PC上
- How to open multiple programs in Windows at once如何打開多個程序在Windows一次
























