<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx</link><description>At ITForum, I had a blast giving the session: Advanced Windows PowerShell Scripting . In previous conferences, I tried to have talks that everyone could come to and get something out of. That worked well a the beginning but I began to get feedback that</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx#7353727</link><pubDate>Thu, 31 Jan 2008 19:57:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7353727</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;I really don't like the $_ notation for getting the pipeline object. It's too difficult to type $_.name $_.this() $_.that(). Better for it to have been $$ as it is easier to type. Finding the dolar sign then the shift+dash then dot is not the faster use of my fingers. It may sound funny but seriously why not $$. It is more natural. Where did you get this underdash thing? The problem is that $_ is used everywhere, especially in where clauses. If it was not for that then it wouldn't have matter. Tell me, do you find it natural to have to type where {$_.name -eq &amp;quot;this&amp;quot;}? It would have prefered where name = this. Without the {} and the -eq and especially without the $_. part.&lt;/p&gt;
&lt;p&gt;Why didn't you use the ordinary =&amp;lt;&amp;gt; etc operators and you used these unatural -eq -lt -etc? I know that some users may have prefered &amp;lt;&amp;gt; to be used for inderection but that is because people need to adapt to a different style with Powershell. For them now everyone has to suffer with the unatural -eq -lt -etc. Moreover, why didn't you suse $$ for the pipeline object? Seems so natural to me. And finally, why don't you infer the {} in a where command if they are ommited. For example allow someone to write &amp;quot;where $_.name -eq &amp;quot;this&amp;quot;&amp;quot; and have the default scriptblock parameter be infered as if there were {} surrounding it. Where doesn't have any other positional parameters I think and thus it should be easy to infer that everything should be the default parameter of a scriptblock. I know the -eq might confuse the parser but its your problem in a sense; youallowed these strange operator syntax. And why do I need &amp;quot;&amp;quot; aroung the string. It's it obvious that after the $_.name -eq a string should follow?&lt;/p&gt;</description></item><item><title>re: Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx#7366016</link><pubDate>Fri, 01 Feb 2008 06:57:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7366016</guid><dc:creator>PowerShellTeam</dc:creator><description>&lt;p&gt;I'm sorry that you don't like it, at the end of the day, you can't please everyone with a syntax. &amp;nbsp;A number of the choices that we made that you dislike came from our decision to mirror much of the existing bodies of work.&lt;/p&gt;
&lt;p&gt;$$ is a very standard Unix Shell construct.&lt;/p&gt;
&lt;p&gt;$_ is used extensively in PERL.&lt;/p&gt;
&lt;p&gt;We tried to invent as few new constructs as possible to facilitate adoption of the technologhy. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The choice of -lt vs &amp;lt; and -gt vs &amp;gt; comes from the fact that &amp;lt; and &amp;gt; are standard shell redirection operators. &amp;nbsp;In the early days we tried to provide alternatives for these so that we could use &amp;lt; to mean -lt but the feedback from the community was INCREDIBLY STRONG on this point. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you'll have the same reaction to PS syntax as I did to VMS DCL syntax when I learned it. &amp;nbsp;I spent the first few days pissed off that it wasn't what I was used to. &amp;nbsp;After I let go of my anger and took it for what it was, I found that I could easily adapt and actually liked it. &amp;nbsp;If that isn't your case - I hope the tools you are using solve the problems you have.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt;Jeffrey Snover [MSFT]&lt;/p&gt;
&lt;p&gt;Windows Management Partner Architect&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell Team blog at: &amp;nbsp; &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/PowerShell"&gt;http://blogs.msdn.com/PowerShell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Visit the Windows PowerShell ScriptCenter at: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx"&gt;http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx#7389935</link><pubDate>Sat, 02 Feb 2008 16:01:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7389935</guid><dc:creator>Desmond Lee</dc:creator><description>&lt;p&gt;Jeffrey,&lt;/p&gt;
&lt;p&gt;Clicking on Download / Video lead to:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/emea/spotlight/download.aspx?videoid=725"&gt;http://www.microsoft.com/emea/spotlight/download.aspx?videoid=725&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On clicking the video icon again at:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://microsofttech.fr.edgesuite.net/msexp/download/spotlight/725/725_high.zip"&gt;http://microsofttech.fr.edgesuite.net/msexp/download/spotlight/725/725_high.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It failed with the error below even though I have already logged in with my MS Live account.&lt;/p&gt;
&lt;p&gt;Please help as there is limited broadband access especially these few days in the gulf region (after a series of underwater fibre cable damages).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;--- cut here ---&lt;/p&gt;
&lt;p&gt; &amp;nbsp;The website declined to show this webpage &lt;/p&gt;
&lt;p&gt; HTTP 403 &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Most likely causes:&lt;/p&gt;
&lt;p&gt;This website requires you to log in. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; What you can try: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Go back to the previous page. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; More information &lt;/p&gt;
&lt;p&gt;This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.&lt;/p&gt;
&lt;p&gt;For more information about HTTP errors, see Help.&lt;/p&gt;</description></item><item><title>re: Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx#7430142</link><pubDate>Mon, 04 Feb 2008 10:51:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7430142</guid><dc:creator>Richard Siddaway</dc:creator><description>&lt;p&gt;I went to this session - it was one of the best session of the week!!&lt;/p&gt;</description></item><item><title>re: Advanced PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2008/01/31/advanced-powershell.aspx#7607860</link><pubDate>Mon, 11 Feb 2008 14:03:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7607860</guid><dc:creator>Shabeer</dc:creator><description>&lt;p&gt;Please suggest some online materials for Powershell...&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>