diff --git a/WindowsMaintenanceReport.ps1 b/WindowsMaintenanceReport.ps1 index b1f9d09..6c60393 100644 --- a/WindowsMaintenanceReport.ps1 +++ b/WindowsMaintenanceReport.ps1 @@ -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') {