<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Search results for 'sectionid:201' matching tags 'PowerShell Training' and 'powershell'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=sectionid%3A201&amp;tag=PowerShell+Training%2Cpowershell&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'sectionid:201' matching tags 'PowerShell Training' and 'powershell'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Piping Get-Content results to the remove-Item cmdlet</title><link>http://powershell.com/cs/forums/thread/10819.aspx</link><pubDate>Sun, 12 Jun 2011 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:10819</guid><dc:creator>JimR1701</dc:creator><description>&lt;p&gt;&lt;span style="font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;font-size:9pt;mso-bidi-font-size:5.5pt;"&gt;I am new to powershell, trying to teach it to myself. I am trying to write a script that pulls a list of servers from a text file and pipes the results to the remove-item cmdlet. Once the get-content cmdlet has supplied the information I am trying to go to each server on the list of servers and access the C:\windows\temp folder and delete only certain files. This is what I have so far. There are many different files with the same name just different extension that need to be cleaned out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;font-size:9pt;mso-bidi-font-size:5.5pt;"&gt;get-content C:\scripts\ServerList.txt | remove-item C:\windows\Temp -include File.*&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;font-size:9pt;mso-bidi-font-size:5.5pt;"&gt;I know this will not work, but it is a starting point. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;font-size:9pt;mso-bidi-font-size:5.5pt;"&gt;Please help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:black;font-size:9pt;mso-bidi-font-size:5.5pt;"&gt;Thanks Jim&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="line-height:115%;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:18pt;mso-bidi-font-size:11.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>