Non elevated warning
Beffroi/WinDiagnostics/pipeline/head This commit looks good Details
WinDiagnostics CI WinDiagnostics passed all CI integrity checks.
Vky/WinDiagnostics/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-09-15 11:30:30 +02:00
parent d620d1f53b
commit 1de4d425ec
1 changed files with 1 additions and 0 deletions

View File

@ -443,6 +443,7 @@ $report = [ordered]@{
if (-not $isAdmin) {
$report.warnings += 'Script is not elevated. Admin-only diagnostics are skipped.'
Write-Warning -Message 'PowerShell is not running as Administrator. Admin-only diagnostics will be skipped, so some information may be missing from the report. Run PowerShell as Administrator for the most complete report.' -WarningAction Continue
}
if ($mode -eq 'Compact') {