I am trying to schedule a powershell script to run via the task manager. When I run the script alone - it executes fine.
Here is the contents of the RUN command via the Windows Scheduler:
C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "d:\Program Files\Microsoft\Exchange Server\Bin\exshell.psc1" -command E:\scripts\eventlog.ps1
When I try to run the task manually I get the following error:
Result: The task completed with an exit code of (fffc0000).