[转载]通过WMIC命令远程打开远程计算机的远程桌面(Remote Desktop)功能

原文地址:http://www.cnblogs.com/dflying/archive/2007/06/29/

通过WMIC命令远程打开远程计算机的远程桌面(Remote Desktop)功能

虽然标题有点拗口,不过这个命令确实挺有用的。

往往辛辛苦苦装了一台Server,回到家里本想远程桌面爽一下,却忘了打开远程的功能,这时这条命令就有用了。

昨天在一台Server上用了招行的网上银行专业版,然后忘了重新打开远程桌面(该软件为了“保证安全”,居然每运行一次都会强行关闭远程桌面功能……),回到家才意识到问题……。这时该命令也非常有用。

wmic /node:"[full machine name]" /USER:"[domain]\[username]"
PATH win32_terminalservicesetting WHERE (__Class!="") CALL SetAllowTSConnections 1
本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利
This posting is provided “AS IS” with no warranties, and confers no rights.
 

from:  http://www.cnblogs.com/dflying/archive/2007/06/29/799509.html

This entry was posted in Windows, 转载. Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>