Published On Feb 16, 2018
This video is a quick look at creating a Scheduled Task with PowerShell. Last time I showed it via the GUI and got pushback so here is how to do it without a gui.
Video for creating the PS1 for a scheduled task:
• Automate your PowerShell scripts with...
If you need more PowerShell help you can always contact me via https://www.BoldZebras.com
Code from video:
$action = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument 'E:\demo\VideoPS.ps1'
$trigger = New-ScheduledTaskTrigger -Daily -At 10am
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "VideoPS Demo" -Description "Shane was here"
show more