- Activate RDP on the Windows machine:
- Make a safety copy of the
termsrv.dll
file in theC:\Windows\System32
folder.
Copy-Item -Path "C:\Windows\System32\termsrv.dll" -Destination "C:\Windows\System32\termsrv.dll.bak"
- Unzip the RDPWrap.zip file from https://github.com/stascorp/rdpwrap/releases
- Run the install.bat file as an administrator
- Run the RDPConf.exe file as an administrator. It should display
[not supported]
in theListener state
field. Do the next part to update therdpwrap.ini
file, then it should displayListening [fully supported]
.
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
- Create a Powershell script:
nano C:\Scripts\Update-RDPWrap.ps1
- 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
- Create a Batch File to Run the Powershell Script:
nano C:\Scripts\Update-RDPWrap.bat
- Paste the following code:
@echo off
powershell.exe -ExecutionPolicy Bypass -File "C:\Scripts\Update-RDPWrap.ps1"
- Create a Service:
sc create UpdateRDPWrapService binPath= "cmd.exe /c C:\Scripts\Update-RDPWrap.bat" start= auto
- Set Service Recovery Options:
sc failure UpdateRDPWrapService reset= 86400 actions= restart/60000/restart/60000/restart/60000
- Start the Service:
sc start UpdateRDPWrapService
qwinsta