<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Managing Scheduled Tasks Remotely Using Powershell</title>
	<atom:link href="http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/</link>
	<description>Using Powershell for (virtually) everything!</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:41:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: cooper wu</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-53212</link>
		<dc:creator>cooper wu</dc:creator>
		<pubDate>Fri, 03 Feb 2012 11:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-53212</guid>
		<description>thanks very much.</description>
		<content:encoded><![CDATA[<p>thanks very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cooper wu</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-53211</link>
		<dc:creator>cooper wu</dc:creator>
		<pubDate>Fri, 03 Feb 2012 11:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-53211</guid>
		<description>very useful.</description>
		<content:encoded><![CDATA[<p>very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Purl</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-29432</link>
		<dc:creator>Tom Purl</dc:creator>
		<pubDate>Wed, 27 Apr 2011 15:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-29432</guid>
		<description>Great tip. Thanks!</description>
		<content:encoded><![CDATA[<p>Great tip. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axel Andersen</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-22618</link>
		<dc:creator>Axel Andersen</dc:creator>
		<pubDate>Wed, 08 Dec 2010 12:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-22618</guid>
		<description>This was very helpfull. I added a filter, that converts the returned data to objects:
filter ConvertFrom-CmdList {
          
            $_ &#124; foreach {if ($_ -match &#039;^$&#039;){ $newobj = New-Object Object
                                        $obj &#124; foreach {$newobj &#124; Add-Member NoteProperty $($_ -split &#039;:&#039;)[0] &quot;$($_ -replace &#039;^.*:[ ]+&#039;)&quot;}
                                        $newobj
                                        $obj = @()}
                if ($_ -notmatch &#039;^$&#039;){$obj += $_ }
                }
            }

Function Get-ScheduledTask {
    
	param([string]$ComputerName = &quot;localhost&quot;)
	Write-Host &quot;Computer: $ComputerName&quot;
	schtasks.exe /query /s $ComputerName /FO List &#124; ConvertFrom-CmdList
	}</description>
		<content:encoded><![CDATA[<p>This was very helpfull. I added a filter, that converts the returned data to objects:<br />
filter ConvertFrom-CmdList {</p>
<p>            $_ | foreach {if ($_ -match &#8216;^$&#8217;){ $newobj = New-Object Object<br />
                                        $obj | foreach {$newobj | Add-Member NoteProperty $($_ -split &#8216;:&#8217;)[0] &#8220;$($_ -replace &#8216;^.*:[ ]+&#8217;)&#8221;}<br />
                                        $newobj<br />
                                        $obj = @()}<br />
                if ($_ -notmatch &#8216;^$&#8217;){$obj += $_ }<br />
                }<br />
            }</p>
<p>Function Get-ScheduledTask {</p>
<p>	param([string]$ComputerName = &#8220;localhost&#8221;)<br />
	Write-Host &#8220;Computer: $ComputerName&#8221;<br />
	schtasks.exe /query /s $ComputerName /FO List | ConvertFrom-CmdList<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks for August 18th from 09:22 to 16:00 &#124; The Wahoffs.com</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-18562</link>
		<dc:creator>Bookmarks for August 18th from 09:22 to 16:00 &#124; The Wahoffs.com</dc:creator>
		<pubDate>Wed, 18 Aug 2010 22:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-18562</guid>
		<description>[...] Managing Scheduled Tasks Remotely Using Powershell &#124; PeetersOnline - [...]</description>
		<content:encoded><![CDATA[<p>[...] Managing Scheduled Tasks Remotely Using <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target='_blank'>Powershell</a> | PeetersOnline &#8211; [...]
<p style="opacity:0.5;padding:0;margin:0;display:inline;"><sub><a href="http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php" onclick="window.open('http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php'); return false;" target="_blank" style="cursor:help;"><b>&#187;crosslinked&#171;</b></a></sub></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Parkison</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-14670</link>
		<dc:creator>Patrick Parkison</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-14670</guid>
		<description>This worked great. It worked with no issues.  Thanks.</description>
		<content:encoded><![CDATA[<p>This worked great. It worked with no issues.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Woody</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-13266</link>
		<dc:creator>Woody</dc:creator>
		<pubDate>Mon, 28 Dec 2009 14:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-13266</guid>
		<description>Invoke-Expression is unnecessary. You can simply state 
schtasks.exe /query /s $ComputerName</description>
		<content:encoded><![CDATA[<p>Invoke-Expression is unnecessary. You can simply state<br />
schtasks.exe /query /s $ComputerName</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariusz</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-11934</link>
		<dc:creator>Mariusz</dc:creator>
		<pubDate>Wed, 18 Nov 2009 16:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-11934</guid>
		<description>Awesome.</description>
		<content:encoded><![CDATA[<p>Awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Scheduled Tasks in Powershell &#171; PowerShell Station</title>
		<link>http://www.peetersonline.nl/index.php/powershell/managing-scheduled-tasks-remotely-using-powershell/comment-page-1/#comment-10125</link>
		<dc:creator>Getting Scheduled Tasks in Powershell &#171; PowerShell Station</dc:creator>
		<pubDate>Wed, 09 Sep 2009 04:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/?p=395#comment-10125</guid>
		<description>[...] Another take on scripting SCHTASKS.EXE     Leave a Comment [...]</description>
		<content:encoded><![CDATA[<p>[...] Another take on scripting SCHTASKS.EXE     Leave a Comment [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

