你好,既然是win08系统,那么可以在批处理中使用 cscript C:\Windows\System32\Scregedit.wsf /ar /0 和 cscript C:\Windows\System32\Scregedit.wsf /cs /0 来开启远程桌面,其实它实际上就是修改了注册表『HKLM\SYSTEM\CurrentControlSet\Control\Terminal server\fDenyTSConnections』的键值。然后呢,再加上一条在系统高级防火墙中允许例外的命令:netsh advfirewall firewall set rule group="远程桌面" new enable=yes
。
面帶微笑,春暖花開