Merge 8e75aeba7e into bc3b87dd76
This commit is contained in:
commit
b0cfdd5b81
1 changed files with 6 additions and 2 deletions
|
|
@ -9,7 +9,11 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
# 1. Configuration
|
# 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"
|
$certSubjectName = "CompanyNameIT-RDP"
|
||||||
$certSubject = "CN=$certSubjectName"
|
$certSubject = "CN=$certSubjectName"
|
||||||
|
|
||||||
|
|
@ -75,4 +79,4 @@ if (Test-Path $rdpFile) {
|
||||||
Write-Host "Success! RDP file is ready for use." -ForegroundColor Green
|
Write-Host "Success! RDP file is ready for use." -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
Write-Error "Target RDP file not found at $rdpFile"
|
Write-Error "Target RDP file not found at $rdpFile"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue