# 1. Define source URL and temporary file path $url = "https://download.greenbeanit.com/gbit/win11-rdp.reg" $dest = "$env:TEMP\win11-rdp.reg" # 2. Download the .reg file $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri $url -OutFile $dest # 3. Import the registry keys silently Start-Process reg.exe -ArgumentList "import `"$dest`"" -Wait -NoNewWindow # 4. Clean up the downloaded file (optional) Remove-Item -Path $dest -Force