﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-iBatis.java-随笔分类-Network Management</title><link>http://www.blogjava.net/viva/category/35865.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 10 Nov 2008 02:11:33 GMT</lastBuildDate><pubDate>Mon, 10 Nov 2008 02:11:33 GMT</pubDate><ttl>60</ttl><item><title>远程重启XP</title><link>http://www.blogjava.net/viva/archive/2008/11/10/239591.html</link><dc:creator>Viva Hu</dc:creator><author>Viva Hu</author><pubDate>Mon, 10 Nov 2008 01:10:00 GMT</pubDate><guid>http://www.blogjava.net/viva/archive/2008/11/10/239591.html</guid><wfw:comment>http://www.blogjava.net/viva/comments/239591.html</wfw:comment><comments>http://www.blogjava.net/viva/archive/2008/11/10/239591.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/viva/comments/commentRss/239591.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/viva/services/trackbacks/239591.html</trackback:ping><description><![CDATA[公司弄了一台新臺式機，老臺式機放在一邊遠程登錄用，結果遠程登錄發現老機器沒有重新啓動選項。開始以爲是遠程登錄客戶端版本有問題，換了Vista的遠程登錄現象依舊。於是去MSDN上搜索了一下：<br />
<br />
引自：<a href="http://blogs.msdn.com/helloworld/archive/2007/11/23/remotely-restarting-windows-xp.aspx">http://blogs.msdn.com/helloworld/archive/2007/11/23/remotely-restarting-windows-xp.aspx<br />
</a>
<fieldset>
<h2>Remotely restarting Windows XP</h2>
<p>If you are using Remote Desktop quite a lot, you may need to restart your XP machine remotely, but there is no option to restart or shutdown the machine. The only options available are Log Off and Disconnect.</p>
<p>To restart or to reboot XP machines remotely, use 'shutdown' command from the command console.</p>
<p>Run cmd.exe, and type 'shutdown -r -t 0' to restart the machine.</p>
</fieldset>
<h2>大致翻譯：</h2>
如果你經常使用遠程桌面，你可能需要遠程重新啓動你的XP機器，但是卻發現開始菜單裏根本沒有&#8220;重新啓動&#8221;或者&#8220;關機&#8221;選項。只有&#8220;註銷&#8221;和&#8220;斷開遠程連接&#8221;。<br />
如果要遠程重啓XP機器，你必須在命令行控制臺中使用&#8220;shutdown&#8221;命令。方法如下：<br />
運行cmd.exe，鍵入&#8220;shutdown -r -t 0&#8221;即可重啓XP。<br />
<br />
命令解釋：<br />
shuntdown是Windows自帶的関機命令，-r參數表示Reboot重新啓動，如果不加這個參數則執行関機操作，-t [0-n]參數表示Time等待[0-n]秒時間，0表示不等待立即執行。你甚至可以把這條命令保存成bat文件放在桌面上，一個用來重啓，一個用來関機（雖然遠程登錄時基本永不到関機功能）。<br />
<br />
其實這篇文章後面的用戶評論更精彩：<br />
<br />
- That's not true. You can Alt-F4 from the desktop to bring up the "Turn Off Computer" options, which allows you to restart. You can also restart via Task Manager.<br />
你可以直接在桌面上按Alt+F4調出&#8220;關閉計算機&#8221;選項，裏面有&#8220;重啓電腦&#8221;的選項，你也可以通過任務管理器重啓。<br />
<br />
- Can't you just do ctrl-alt-end and choose restart? that's what i've always done.<br />
難道你不能按Ctrl+Alt+End調出菜單來重新啓動嗎？我經常這麽干呢。lol<br />
<br />
- You just have to find "Windows Security" on the Start Menu, which give you the Ctrl-Alt-Del screen. Or it will just bring up the Task Manager, which also has all the standard shutdown/restart options.<br />
你只要找到開始菜單裏的&#8220;Windows安全&#8221;，可以找到一個Ctrl+Alt+Del界面。或者能幫你打開任務管理其，你同樣也可以找到標準的関機/重啓選項。<br />
<br />
最後，我事後也想到了一個方法，只適用于XP以及XP以上版本的Windows，Win2K不支持：<br />
開始菜單 - 運行 - msconfig回車 - 在&#8220;啓動&#8221;選項卡裏隨便改點東西，點確定按鈕，即可跳出一個對話框問你&#8220;是否立即重新啓動？&#8221;，大功告成。Win2K不自帶msconfig.exe這個管理程序，除非從XP裏複製一個過去用。<br />
<br />
人民的智慧是偉大的。lol<img src ="http://www.blogjava.net/viva/aggbug/239591.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/viva/" target="_blank">Viva Hu</a> 2008-11-10 09:10 <a href="http://www.blogjava.net/viva/archive/2008/11/10/239591.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>