Non elevated warning
This commit is contained in:
parent
d620d1f53b
commit
1de4d425ec
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue