From a40c47ffaf6cca1be8b27bf6bc2a16bb4b9e5531 Mon Sep 17 00:00:00 2001 From: ulv1 Date: Thu, 18 Jan 2018 14:49:01 +0100 Subject: [PATCH 1/4] Add files via upload Overview Author: ulv1 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 --- .../Enable Remote Desktop/Enable RDP.bat | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat diff --git a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat new file mode 100644 index 00000000..2a6765db --- /dev/null +++ b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat @@ -0,0 +1,13 @@ + + +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 \ No newline at end of file From 6c621e068774d9ad0eeec7feaa764fe3d0cd9a26 Mon Sep 17 00:00:00 2001 From: ulv1 Date: Thu, 18 Jan 2018 14:52:16 +0100 Subject: [PATCH 2/4] Update Enable RDP.bat Added description in bat script --- .../Enable Remote Desktop/Enable RDP.bat | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat index 2a6765db..2cf3870f 100644 --- a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat +++ b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/Enable RDP.bat @@ -1,4 +1,10 @@ - +<# 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 @@ -10,4 +16,4 @@ REM Set service to start automatically at boot sc config termservice start= auto REM Start service -net start termservice \ No newline at end of file +net start termservice From be973f18fea8f0d50a05e7421b2d19bb90c346fd Mon Sep 17 00:00:00 2001 From: ulv1 Date: Thu, 18 Jan 2018 14:53:34 +0100 Subject: [PATCH 3/4] Add files via upload Added readme, as required. --- .../Enable Remote Desktop/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md diff --git a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md new file mode 100644 index 00000000..ca624a9d --- /dev/null +++ b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md @@ -0,0 +1,15 @@ +Overview +Author: ulv1 +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 \ No newline at end of file From 2104256e5bef0d9c0a1f0db7360d46d3fac51acb Mon Sep 17 00:00:00 2001 From: ulv1 Date: Fri, 19 Jan 2018 10:41:27 +0100 Subject: [PATCH 4/4] Update README.md --- .../Tools & Utilities/Enable Remote Desktop/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md index ca624a9d..451266f9 100644 --- a/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md +++ b/Windows-Samples/Tools & Utilities/Enable Remote Desktop/README.md @@ -1,5 +1,5 @@ Overview -Author: ulv1 +Author: ulv1 (ulv.ares.b@gmail.com) Date Uploaded: 18/01/2018 Tested on AirWatch 9.2.3.0: Completed @@ -12,4 +12,4 @@ 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 \ No newline at end of file +4. Starts termservice