--query and set registry values on remote computer. --Example: enable remotedesktop (requires reboot) reg query "\\iphcip17\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server" /v fDenyTSConnections reg add "\\iphcip17\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Terminal Server" /v fDenyTSConnections /t reg_dword /d 0 /f probably needs the following entry for the firewall as well... HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\GloballyOpenPorts\List --other tools runas /user:administrator cmd.exe compmgmt.msc mstsc.exe /v iphcip15 /f