Powershell with Windows Task Scheduler

In this article i have provided few commands how to work with task scheduler with power-shell. for detailed information on Scheduled Tasks Cmdlets, please visit.

https://technet.microsoft.com/en-us/library/jj649816(v=wps.630).aspx

 

 

PS C:\Users\Administrator> Disable-ScheduledTask -TaskName “HariTask”

TaskPath TaskName State
——– ——– —–
\ HariTask Disabled
PS C:\Users\Administrator> Enable-ScheduledTask -TaskName “HariTask”

TaskPath TaskName State
——– ——– —–
\ HariTask Ready
PS C:\Users\Administrator> Get-ScheduledTask -TaskName “HariTask”

TaskPath TaskName State
——– ——– —–
\ HariTask Ready
PS C:\Users\Administrator> Start-ScheduledTask -TaskName “HariTask”
PS C:\Users\Administrator> Stop-ScheduledTask -TaskName “HariTask”
PS C:\Users\Administrator>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s