windows 命令行

新建用户

net user demo 123 /add
net localgroup administrators demo /add

开启远程桌面服务(3389):

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /F
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fDenyTSConnections /t REG_DWORD /d 0

referer:http://apps.hi.baidu.com/share/detail/15523701

posted @ 2012-02-29 12:49  花生!~~  阅读(268)  评论(0编辑  收藏  举报