Skip to main content

Rdp - Wrapper Access Denied

Write-Host "`n[INFO] If you still see 'Access Denied':" -ForegroundColor Yellow Write-Host "1. Disable Windows Defender Real-time protection temporarily" -ForegroundColor Gray Write-Host "2. Add exclusion for $RDPWrapperPath in antivirus" -ForegroundColor Gray Write-Host "3. Reboot and run this tool again" -ForegroundColor Gray

pause @echo off title RDP Wrapper Access Denied Fixer echo Requesting administrator privileges... powershell -Command "Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -Verb RunAs -ArgumentList '-ExecutionPolicy Bypass -File \"%~dp0RDPWrapperFix.ps1\"'" pause 📝 Configuration File: config.ini (Optional) [RDPWrapper] ; Custom path to termsrv.dll if Windows is installed on different drive termsrv_path = C:\Windows\System32\termsrv.dll ; Custom RDP port (default 3389) rdp_port = 3389 rdp wrapper access denied

if ($RestartService) Restart-Computer -Force Write-Host "`n[INFO] If you still see 'Access Denied':"

Write-Host "=====================================================" -ForegroundColor Cyan Write-Host " RDP Wrapper - Access Denied Fix Tool" -ForegroundColor Cyan Write-Host "=====================================================" -ForegroundColor Cyan if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) Write-Host "ERROR: This tool requires Administrator privileges." -ForegroundColor Red Write-Host "Please run as Administrator." -ForegroundColor Yellow pause exit 1 Configuration $RDPWrapperPath = "$env:ProgramFiles\RDP Wrapper" $TermsrvPath = "$env:SystemRoot\System32\termsrv.dll" $RDPConfPath = "$RDPWrapperPath\RDPConf.exe" $RDPWrapIni = "$RDPWrapperPath\rdpwrap.ini" Step 1: Check if RDP Wrapper is installed if (-not (Test-Path $RDPConfPath)) Write-Host "[ERROR] RDP Wrapper not found at $RDPWrapperPath" -ForegroundColor Red Write-Host "Please install RDP Wrapper first from https://github.com/stascorp/rdpwrap" -ForegroundColor Yellow pause exit 1 Reboot and run this tool again" -ForegroundColor Gray