-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GITBOOK-625: change request with no subject merged in GitBook
- Loading branch information
1 parent
14341a2
commit c9bc444
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Page | ||
|
||
## Enable RDP | ||
|
||
Check the status of the deny connection flags | ||
|
||
``` | ||
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections | ||
``` | ||
|
||
If not present or set to 1 use the following command to change the key value to 0. This will also open the default RDP port (3389) and start the service. | ||
|
||
``` | ||
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f | ||
``` | ||
|
||
Disable restricted admin mode | ||
|
||
``` | ||
reg add HKLM\System\CurrentControlSet\Control\Lsa /t REG_DWORD /v DisableRestrictedAdmin /d 0x0 /f | ||
``` | ||
|
||
Configure firewall | ||
|
||
``` | ||
netsh firewall add portopening TCP 3389 "Remote Desktop" | ||
``` | ||
|
||
## Enable RDP for users <a href="#enable-rdp-for-users" id="enable-rdp-for-users"></a> | ||
|
||
**CMD** | ||
|
||
``` | ||
net localgroup "Remote Desktop Users" <user> /add | ||
net localgroup "Administrators" "<user>" /add #not necessary | ||
``` | ||
|
||
**PS** | ||
|
||
``` | ||
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "<user>" | ||
Add-LocalGroupMember -Group "Administrators" -Member "<user>" #not necessary | ||
``` |