RDP on / off script
This is my rdp_enable.cmd:@echo offFOR /f "tokens=3 skip=2" %%i IN ('reg query "\\%1\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections') DO (set dword=%%i)echo %DWORD%if %DWORD%==0x0 goto OFFgoto ON:ONreg add ...