<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx</link><description>Create a scheduled job to run a Windows PowerShell script that creates an HTML Server uptime report.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3567369</link><pubDate>Wed, 17 Apr 2013 13:14:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3567369</guid><dc:creator>vdinenna</dc:creator><description>&lt;p&gt;Thanks! &amp;nbsp;Of all the explainations, this one worked for me and it was the simplest as well.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3567369" width="1" height="1"&gt;</description></item><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3550972</link><pubDate>Thu, 07 Feb 2013 06:33:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3550972</guid><dc:creator>laderio</dc:creator><description>&lt;p&gt;I have got a powershell script which runs just finde when &amp;quot;Run only when user is loggen on&amp;quot; is selected. But when selecting &amp;quot;Run whether user is loggen on or not&amp;quot; the script does not run properly anymore.&lt;/p&gt;
&lt;p&gt;The script makes some AD queries and gets me the clusters in our AD. Then it queries the clusters for nodes and some status infos and also queries the nodes for events from failover clustering. Then it puts all in excel and saves the excel to local disk. Then it sends the excel file via smtp with the health of the clusters.&lt;/p&gt;
&lt;p&gt;The email is sent, when &amp;quot;Run whether user is loggen on or not&amp;quot; is selected, but no excel file is generated.&lt;/p&gt;
&lt;p&gt;Do you have any hints on that? If helpful, I could post the code of the script.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3550972" width="1" height="1"&gt;</description></item><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3519154</link><pubDate>Mon, 10 Sep 2012 10:56:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3519154</guid><dc:creator>kiquenet</dc:creator><description>&lt;p&gt;I need create schedule task programatically using Powershell (PS remoting).&lt;/p&gt;
&lt;p&gt;My task execute a powershell script (and other cases a script cmd) inmediately.&lt;/p&gt;
&lt;p&gt;$powershellcmd = (get-command powershell.exe).Definition&lt;/p&gt;
&lt;p&gt;$upgradeWSPps1 = (Join-Path $ScriptDirectory Tests.LifeCycle.Deploy.MOSS.UpgradeWSP.ps1)&lt;/p&gt;
&lt;p&gt;$cmdToRun = &amp;quot;$powershellcmd -ExecutionPolicy Bypass -WindowStyle Hidden -NoLogo -File &amp;quot;&amp;quot;$upgradeWSPps1&amp;quot;&amp;quot; &amp;quot;&lt;/p&gt;
&lt;p&gt;Maybe problems with single-quotes, double-quotes..&lt;/p&gt;
&lt;p&gt;Any suggestions about it for create task ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3519154" width="1" height="1"&gt;</description></item><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3517586</link><pubDate>Sun, 02 Sep 2012 15:28:25 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3517586</guid><dc:creator>Knuckle-Dragger</dc:creator><description>&lt;p&gt;Hi Ed, thanks for another great article.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3517586" width="1" height="1"&gt;</description></item><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3513890</link><pubDate>Sun, 12 Aug 2012 04:21:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3513890</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@K_Schulte in Windows PowerShell 3 there are job scheduler cmdlets and it will allow you to create a scheduled task via cmdlets. They work great.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3513890" width="1" height="1"&gt;</description></item><item><title>re: Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/08/11/weekend-scripter-use-the-windows-task-scheduler-to-run-a-windows-powershell-script.aspx#3513866</link><pubDate>Sat, 11 Aug 2012 20:13:56 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3513866</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;it&amp;#39;s a great idea that we can use the task scheduler to integrate our powershell jobs!&lt;/p&gt;
&lt;p&gt;An easy way to get things done without pressing the button :-)&lt;/p&gt;
&lt;p&gt;It might be even more comfortable if we can build schedule directly via PS cmdlets ...&lt;/p&gt;
&lt;p&gt;Klaus. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3513866" width="1" height="1"&gt;</description></item></channel></rss>