Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.06 KB

README.md

File metadata and controls

67 lines (52 loc) · 2.06 KB

Install - Quick Start Guide to Install RDPWrap on Windows

  1. Activate RDP on the Windows machine:
  2. Make a safety copy of the termsrv.dll file in the C:\Windows\System32 folder.
Copy-Item -Path "C:\Windows\System32\termsrv.dll" -Destination "C:\Windows\System32\termsrv.dll.bak"
  1. Unzip the RDPWrap.zip file from https://github.com/stascorp/rdpwrap/releases
  2. Run the install.bat file as an administrator
  3. Run the RDPConf.exe file as an administrator. It should display [not supported] in the Listener state field. Do the next part to update the rdpwrap.ini file, then it should display Listening [fully supported].

To update that the rdpwrap.ini file, for the newest version:

Stop-Service termservice -Force
Invoke-WebRequest https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini -outfile "C:\Program Files\RDP Wrapper\rdpwrap.ini"
Start-Service termservice

Automate this part so new versions are automatically updated:

  1. Create a Powershell script:
nano C:\Scripts\Update-RDPWrap.ps1
  1. Paste the following code:
# Stop Remote Desktop Service
Stop-Service termservice -Force

# Download the latest rdpwrap.ini
Invoke-WebRequest https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini -outfile "C:\Program Files\RDP Wrapper\rdpwrap.ini"

# Start Remote Desktop Service
Start-Service termservice
  1. Create a Batch File to Run the Powershell Script:
nano C:\Scripts\Update-RDPWrap.bat
  1. Paste the following code:
@echo off
powershell.exe -ExecutionPolicy Bypass -File "C:\Scripts\Update-RDPWrap.ps1"
  1. Create a Service:
sc create UpdateRDPWrapService binPath= "cmd.exe /c C:\Scripts\Update-RDPWrap.bat" start= auto
  1. Set Service Recovery Options:
sc failure UpdateRDPWrapService reset= 86400 actions= restart/60000/restart/60000/restart/60000
  1. Start the Service:
sc start UpdateRDPWrapService

Check how many RDP sessions are currently active:

qwinsta