How to Run a PowerShell Script at Startup in Windows
You want a script to map drives or log a health check every time Windows starts, without anyone remembering to run it. Quick answer: to run a PowerShell script on startup, register a scheduled task with a logon trigger that starts powershell.exe with your script: In this tutorial, we’ll run a PowerShell script on startup … Read more