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

Enable RDP #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<# Enables RDP on target machine
.SYNOPSIS
1. Opens firewall to allow incoming connections
2. Disables "Deny TS Connections" registry key
3. Sets termservice to start automatically at boot
4. Starts termservice
#>

REM Open the firewall to allow incoming connections
netsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes

REM Disable "Deny TS Connections" registry key
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

REM Set service to start automatically at boot
sc config termservice start= auto

REM Start service
net start termservice
15 changes: 15 additions & 0 deletions Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Overview
Author: ulv1 ([email protected])
Date Uploaded: 18/01/2018
Tested on
AirWatch 9.2.3.0: Completed
Client Operating System: Windows 10 (1709)

Description
Enables RDP on target machine.

What does the sample do?
1. Opens firewall to allow incoming connections
2. Disables "Deny TS Connections" registry key
3. Sets termservice to start automatically at boot
4. Starts termservice