Enable Remote Desktop on Windows 7 via batch file
- runs locally
- remote is probably only work for domain PCs because of windows firewall
- to run remotely: copy file to remote computer via smb
- use PSEXEC to connect to the remote computer and run batch
- once run remote desktop will be accessible via domain name
ie: [machineName].{domain}.{suffix}
echo disable firewall
netsh advfirewall set currentprofile state off
echo add firewall rule for RD
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes
echo auto start remote registry
sc config RemoteRegistry start= auto
echo start remote registry
net start RemoteRegistry
echo force accept of RD connections
reg add "HKLM\system\currentcontrolset\control\terminal server" /v "fDenyTSConnections" /t REG_DWORD /d 0x0 /f
echo make RD autostart
sc config TermService start= auto
echo make RD umRdp auto start
sc config UmRdpService start= auto
echo stop umrdp
net stop UmRdpService
echo stop and restart terminal service
echo y|net stop TermService
net start TermService
echo enable remote desktop exception
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes profile=domain
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes profile=private
echo turn on firewall
netsh advfirewall set currentprofile state on
:: remove REM if you want to see what happens running locally
REM pause
1 comments:
Casino Games - Jackson Hole Casino Resort
Our Casino Games 논산 출장샵 page offers 광명 출장안마 up to 50 of the newest and 군포 출장마사지 most popular casino games at Jackson Hole Casino Resort. 포항 출장샵 From video poker to 군포 출장샵 table games,
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.