Run a powershell script in the background once per minute
问题 I want a powershell script to be run once per minute in the background. No window may appear. How do I do it? 回答1: Use the Windows Task Scheduler and run your script like this: powershell -File myScript.ps1 -WindowStyle Hidden Furthermore create the script that it runs under a specific user account and not only when that user is logged on . Otherwise you'll see a console window. 回答2: Perhaps this scenario will do. We do not start PowerShell executable every minute (this is expensive, BTW).