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

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ulv1 authored Jan 18, 2018
1 parent 6cb58a2 commit a40c47f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

1 comment on commit a40c47f

@ulv1
Copy link
Author

@ulv1 ulv1 commented on a40c47f Jan 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Ulv Bjørnsson [email protected]

Please sign in to comment.