<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scheduled-Tasks on Anything About IT</title><link>https://www.verboon.info/tags/scheduled-tasks/</link><description>Recent content in Scheduled-Tasks on Anything About IT</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 29 Dec 2013 17:45:30 +0000</lastBuildDate><atom:link href="https://www.verboon.info/tags/scheduled-tasks/index.xml" rel="self" type="application/rss+xml"/><item><title>PowerShell - Creating Scheduled Tasks with PowerShell version 3</title><link>https://www.verboon.info/2013/12/powershell-creating-scheduled-tasks-with-powershell-version-3/</link><pubDate>Sun, 29 Dec 2013 17:45:30 +0000</pubDate><guid>https://www.verboon.info/2013/12/powershell-creating-scheduled-tasks-with-powershell-version-3/</guid><description>&lt;p&gt;I am currently working on a script where I need to create a scheduled task that runs a powershell script at a given time. With PowerShell 4.0 a scheduled task can be easily created with the new cmdlets &lt;a href="http://technet.microsoft.com/en-us/library/jj649817.aspx"&gt;New-ScheduledTaskAction&lt;/a&gt;, &lt;a href="http://technet.microsoft.com/en-us/library/jj649821.aspx"&gt;New-ScheduledTaskTrigger&lt;/a&gt; and &lt;a href="http://technet.microsoft.com/en-us/library/jj649811.aspx"&gt;Register-ScheduledTask&lt;/a&gt;, but unfortunately i have to create a solution that works on clients running PowerSshell version 3.0.&lt;/p&gt;
&lt;p&gt;When searching the web for examples how others have solved this I found many examples where people invoke the &lt;a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357(v=vs.85).aspx"&gt;schtasks.exe&lt;/a&gt; command but in order to further improve my PowerShell skills I wanted to avoid calling external executables and do as much in PowerShell as possible. So after a bit of further searching I found an interesting &lt;a href="http://letitknow.wordpress.com/2011/05/20/create-scheduled-task-by-using-powershell/"&gt;post&lt;/a&gt; from @letitknowblog who uses the Task Scheduler’s com object for creating a scheduled task.&lt;/p&gt;</description></item></channel></rss>