fix: корректный .Count при одном RDP-сертификате в store
PowerShell 5.1 разворачивал одноэлементные коллекции cert и ломал диагностику. Добавлены самотест и обновлён README (-IncludeAdminTests, обход GPO). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -66,7 +66,7 @@ try {
|
||||
|
||||
if ($RestoreTls) {
|
||||
Write-RdpRepairLog 'Возврат SecurityLayer=2 (TLS)' 'STEP' $logPath
|
||||
$certs = Get-RdpRepairRemoteDesktopCertificates
|
||||
$certs = @(Get-RdpRepairRemoteDesktopCertificates)
|
||||
if ($certs.Count -eq 0) {
|
||||
Write-RdpRepairLog 'No cert in Remote Desktop store - run full repair or repair install first' 'ERROR' $logPath
|
||||
exit 2
|
||||
|
||||
Reference in New Issue
Block a user