<?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>Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx</link><description>Summary : Microsoft Script Guy, Ed Wilson, concludes his three part series about his top ten favorite Windows PowerShell tricks.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3551467</link><pubDate>Sat, 09 Feb 2013 23:22:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3551467</guid><dc:creator>brogrammer22</dc:creator><description>&lt;p&gt;i know how to make New Super Mario Bros Wii convert to PC using powershell.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3551467" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3445672</link><pubDate>Mon, 08 Aug 2011 11:37:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3445672</guid><dc:creator>Oscar Virot</dc:creator><description>&lt;p&gt;To: Anders Wang&lt;/p&gt;
&lt;p&gt;Because I didn&amp;#39;t think of it :)&lt;/p&gt;
&lt;p&gt;That is of course more efficient.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3445672" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3437231</link><pubDate>Fri, 24 Jun 2011 09:46:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3437231</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Hello Ed,&lt;/p&gt;
&lt;p&gt;well done! Good advice is always wellcome!!&lt;/p&gt;
&lt;p&gt;I think you may have to continue this serious and make it a wekly column on you blog!&lt;/p&gt;
&lt;p&gt;There&amp;#39;s enough stuff to cover and we all might learn something new and astonishing!&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=3437231" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3436764</link><pubDate>Wed, 22 Jun 2011 03:10:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3436764</guid><dc:creator>Anders Wang</dc:creator><description>&lt;p&gt;Hi, To Oscar Virot,&lt;/p&gt;
&lt;p&gt;Why use [int](&amp;#39;a&amp;#39;)[0] rather not [int][char]&amp;#39;a&amp;#39; ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3436764" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3436763</link><pubDate>Wed, 22 Jun 2011 03:07:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3436763</guid><dc:creator>Anders Wang</dc:creator><description>&lt;p&gt;To Oscar Virot,&lt;/p&gt;
&lt;p&gt;Why not use [int](&amp;#39;a&amp;#39;)[0] rather not [int][char]&amp;#39;a&amp;#39; ?&lt;/p&gt;
&lt;p&gt;I thought [int][char]&amp;#39;a&amp;#39;..[int][char]&amp;#39;z&amp;#39;|%{[char]$_} is the same as your examples&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3436763" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3436680</link><pubDate>Tue, 21 Jun 2011 19:24:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3436680</guid><dc:creator>Oscar Virot</dc:creator><description>&lt;p&gt;Hey.&lt;/p&gt;
&lt;p&gt;But even without remembering the ASCII table you can still enumerate a-z.&lt;/p&gt;
&lt;p&gt;Remember that you also can cast a Character back to an integer. But just trying [int]&amp;#39;A&amp;#39; wont work. Powershell thinks its a string so we need to make it a single character first. [int](&amp;#39;a&amp;#39;)[0] returns 97.&lt;/p&gt;
&lt;p&gt;So the command for enumerating a-z without knowin ASCII is:&lt;/p&gt;
&lt;p&gt;[int](&amp;#39;a&amp;#39;)[0]..[int](&amp;#39;z&amp;#39;)[0] | % { [char]$_ }&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3436680" width="1" height="1"&gt;</description></item><item><title>re: Top Ten Favorite PowerShell Tricks: Part 3 </title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/06/20/top-ten-favorite-powershell-tricks-part-3-working-with-ranges-dates-and-other-cool-powershell-tricks.aspx#3436452</link><pubDate>Mon, 20 Jun 2011 19:03:17 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3436452</guid><dc:creator>Bigteddy</dc:creator><description>&lt;p&gt;Your trick #10, Converting WMI date to DateTime objects is SO cool! &amp;nbsp;I have written a vb function to do exactly this. &amp;nbsp;Thanks.&lt;/p&gt;
&lt;p&gt;BTW, in Trick #8, why not just use the following (I think easier and more readable) code to get the same result?:&lt;/p&gt;
&lt;p&gt;Get-Command -CommandType cmdlet | ForEach-Object { Get-Help $_ -Examples} &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3436452" width="1" height="1"&gt;</description></item></channel></rss>