Run PowerShell as Scheduled Task — by Microsoft Q&A community (accepted answer, anonymous) with Rich Matheisen
A script that worked by hand failed under Task Scheduler. The accepted answer says not to tick Do not store password when using Run whether user is logged on or not, since the task then cannot reach network resources, and to isolate the problem with a trivial test script and -noexit. Rich Matheisen recommends Start-Transcript for diagnosis and says two-factor authentication won't work in a scheduled task; the poster suspected a smart-card PIN prompt. No confirmed final fix is recorded.
Quick steps
- Leave Do not store password unticked for network access
- Add Start-Transcript / Stop-Transcript to the script
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: Run PowerShell as Scheduled Task by Microsoft Q&A community (accepted answer, anonymous) with Rich Matheisen. Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me