@echo off

title="开启远程桌面"

cd \

set/p strcomputer=请输入计算机的IP地址或计算机名称并按回车:

set/p struser=请输入用户并按回车:

 

Wmic /node:"%strcomputer%" /USER:"%struser%" PATH win32_terminalservicesetting WHERE (__Class!="") CALL SetAllowTSConnections 1

pause