Windows Task Scheduler
Is a Software, part of the Windows system to schedule tasks
Notes¶
General¶
Run whether user is logged on or notdoesn't work onAzureADdomain- Workaround: create a local user for that
Triggers¶
Workstation unlockis done every time user logs in in an current session, but not (it seems) when the session is started
Examples¶
Schedule PowerShell scripts¶
- Select
Run whether user is logged on or notto hide the prompt- Could not work on Domain PCs
- Program:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe - Argument:
-WindowStyle Hidden -ExecutionPolicy Bypass -Command "& 'path\to\script.ps1' -arg1='value' -arg2='path'" - Start in: `path\to\