fix: корректный .Count при одном RDP-сертификате в store
PowerShell 5.1 разворачивал одноэлементные коллекции cert и ломал диагностику. Добавлены самотест и обновлён README (-IncludeAdminTests, обход GPO). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -15,10 +15,16 @@ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
|
||||
cd C:\path\to\fix-DAK-PC\scripts
|
||||
```
|
||||
|
||||
4. **Самотесты** (обязательно):
|
||||
4. **Самотесты** (обязательно, с правами администратора):
|
||||
|
||||
```powershell
|
||||
.\Invoke-RdpRepairSelfTest.ps1
|
||||
.\Invoke-RdpRepairSelfTest.ps1 -IncludeAdminTests
|
||||
```
|
||||
|
||||
Ожидание: `FAIL=0`. Если `Set-ExecutionPolicy` ругается на GPO — для сессии достаточно `Process=Bypass` или запуск:
|
||||
|
||||
```powershell
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\Invoke-RdpRepairSelfTest.ps1 -IncludeAdminTests
|
||||
```
|
||||
|
||||
5. **Полный интерактивный ремонт**:
|
||||
|
||||
Reference in New Issue
Block a user