SummaryUsing the Commands Tab, many administrative users will deploy scripts and commands to further their ability for systems management using JumpCloud. In working with a varied audience of users and environments, we have collaborated to create some "Policy" commands for purposes ranging from security to software management.
- Requires Windows 8, Windows Server 2012 or newer.
- Scheduled tasks created in this manner will run as the same user that created them.
In the below example a scheduled task is created called "Test" which will execute "test-script.ps1" upon next login.
$action = New-ScheduledTaskAction -Execute C:\test-script.ps1
$trigger = New-ScheduledTaskTrigger -AtLogOn
Register-ScheduledTask -Action$action -Trigger $trigger -TaskName "Test" -Description "Testing Scheduled Task API via PowerShell"
This can be viewed in the Task Scheduler snap-in alongside all other scheduled tasks.