I have a Powershell script that works when I run it manually but not when I run it as a Scheduled Task.
I am running the Scheduled Task as the same user (for both Powershell & Task Scheduler) with "Run whether users is logged on or not" selected.
I have setup Group Policy as follows: Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment -> “Access to this computer from the Network” AND “Allow logon locally” ~ Both of those locations contain the User I'm running the Scheduled Task under.
When I run this as a Scheduled Task it immediately bombs out.
What's going on here? Can someone help me figure out what's happening? I would love to get this Powershell script to run as a Scheduled Task.