Do you have your task scheduled as powershell.exe and the parameter as -file "D:\Documents\Scripts\UCSCheck\UCS_Health_Check.ps1 -UseCached -RunReport -Silent"
\UCS_Health_Check_v2.5.ps1 -UseCached -RunReport -Silent -Email user@domain.comHas anyone been able to run this as a Scheduled Task? When I launch powershell and paste in .\UCS_Health_Check.ps1 -UseCached -RunReport -SilentIt runs just fine.But when ...
How did you get it automated? I can run just fine from powershell console but when I schedule as a Task it says it runs for a few minutes the goes away.