PowerShell script as a Windows scheduled task

If the problem you’re having is with Execution Policy, then you can also set the execution policy of a specific invocation of PowerShell. This is what I usually do when executing PowerShell through a scheduled task: Why? -NoProfile This ensures that you don’t rely on anything in the user’s PowerShell profile, and avoids the overhead of … Read more