Так же в копилку опыта, есть скрипт который проверяет живность SCCM и оправляет результаты на почту:
To run the script and Email Warning AND Critical Messages:
(What we use every 7am in the morning)
powershell.exe directory\sccm_health.ps1 –reporttype “MorningReport”
To run the script and Email Critical Messages:
(What we use every hour at the top of every hour)
powershell.exe directory\sccm_health.ps1
To send all results regardless of report type:
Modify SCCM_Health.ps1 line 18 to be if (-not $debug) { $debug = 1 }
Alternatively you can run:
powershell.exe directory\sccm_health.ps1 –debug 1
To run the script and Email Warning AND Critical Messages:
(What we use every 7am in the morning)
powershell.exe directory\sccm_health.ps1 –reporttype “MorningReport”
To run the script and Email Critical Messages:
(What we use every hour at the top of every hour)
powershell.exe directory\sccm_health.ps1
To send all results regardless of report type:
Modify SCCM_Health.ps1 line 18 to be if (-not $debug) { $debug = 1 }
Alternatively you can run:
powershell.exe directory\sccm_health.ps1 –debug 1
Скачать и прочитать подробнее можно по ссылке.
Комментариев нет:
Отправить комментарий