开启远程桌面脚本

sc config SessionEnv start= auto
sc config TermService start= auto
sc config UmRdpService start= auto
sc start SessionEnv
sc start TermService
sc start UmRdpService

wmic RDTOGGLE WHERE ServerName='%COMPUTERNAME%'  call SetAllowTSConnections 1

 

 

你可能感兴趣的:(开启远程桌面脚本)