I have a password reset script (passwordexpire.ps1) that works perfectly whenever I r-click and 'run using powershell'.
However, I wish to automate this daily task and my attempts to set it up in task Scheduler on the DC fails to run. I see the task steps are created and given process IDs in the 'history' tab, all as completed, but nothing results from it running.
Does anyone have some steps I can follow to make this work? I've read that configuring the location of where it starts is something to be modified when using .ps1 files but have not found anything else.
Server 2008 R2 standard.
The script is a simple notepad file renamed as .ps1