Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit 6c621e0

Browse files
authored
Update Enable RDP.bat
Added description in bat script
1 parent a40c47f commit 6c621e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
1+
<# Enables RDP on target machine
2+
.SYNOPSIS
3+
1. Opens firewall to allow incoming connections
4+
2. Disables "Deny TS Connections" registry key
5+
3. Sets termservice to start automatically at boot
6+
4. Starts termservice
7+
#>
28

39
REM Open the firewall to allow incoming connections
410
netsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes
@@ -10,4 +16,4 @@ REM Set service to start automatically at boot
1016
sc config termservice start= auto
1117

1218
REM Start service
13-
net start termservice
19+
net start termservice

0 commit comments

Comments
 (0)