January 15th, 2015

PowerTip: Use PowerShell to Enable Scheduled Task

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to enable a scheduled task.

Hey, Scripting Guy! Question How can I use Windows PowerShell to enable a scheduled task?

Hey, Scripting Guy! Answer Use the Enable-ScheduledTask function from the Scheduled Task module, for example:

Enable-ScheduledTask -TaskName applog

Note  This command uses the Scheduled Task module (which was introduced in Windows 8 and
Windows Server 2012), and it requires admin rights.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.