diff --git a/RDPSign.ps1 b/RDPSign.ps1 index 6ee1c44..582b13f 100644 --- a/RDPSign.ps1 +++ b/RDPSign.ps1 @@ -9,7 +9,11 @@ # ============================================================================== # 1. Configuration -$rdpFile = "C:\Users\Desktop\RDPFILENAME.rdp" + +# Resolve the current signed in user's Desktop path +$desktopPath = [Environment]::GetFolderPath('Desktop') +$rdpFile = Join-Path $desktopPath 'Azure\asgc-data.rdp' + $certSubjectName = "CompanyNameIT-RDP" $certSubject = "CN=$certSubjectName" @@ -75,4 +79,4 @@ if (Test-Path $rdpFile) { Write-Host "Success! RDP file is ready for use." -ForegroundColor Green } else { Write-Error "Target RDP file not found at $rdpFile" -} \ No newline at end of file +}