PowerShell Team

Automating the world one-liner at a time…

Latest posts

Jul 1, 2009
Post comments count 0
Post likes count 0

Assigning the Output of a SWITCH Statement

PowerShell Team

I was just reading the whitepaper Automating Citrix XenApp on XenServer deployments on HP ProLiant servers.  The reason why this works well for them is that the HP Insight Rapid Deployment (RDP) software has the ability to launch scripts at various points.  Citrix has a wide range of cmdlets so they are able to put together a pretty nice bundle and offer it in a way that allows you to change it if you don't like it.  In fact my favorite part of the paper was this: Create your own cmdlets for a XenServer environment If the cmdlets developed by Citrix do not meet the needs of your environment, you ca...

Jun 26, 2009
Post comments count 0
Post likes count 0

WMI Performance

PowerShell Team

Andy Cheung wrote a very good blog on WMI performance HERE.  Check it out.   Enjoy! Jeffrey Snover [MSFT] Distinguished Engineer Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Jun 25, 2009
Post comments count 0
Post likes count 0

Detection logic for PowerShell installation

PowerShell Team

"How do we programmatically detect that PowerShell is installed ?" - This question has started coming up frequently as more folks (both internally and externally) have started to build applications with PowerShell support. As we approach Win7/W2K8-R2 release, which will include PowerShell 2.0 in-box, it is pertinent to have the right guidance out for PowerShell detection logic. If you're writing an installer which relies on PowerShell presence, not only do you need to detect whether PowerShell is installed, but also what version of PowerShell is installed. Remember:  Hemant Ma...

Jun 24, 2009
Post comments count 0
Post likes count 0

New Powershell Survey on Connect

PowerShell Team

PowerShell team wants to hear from you. How easy or difficult it is for you to search PowerShell stuff like learning materials, help , samples, scripts etc? how often do you search for these? and what are your best bets to find information? How it should be made better? Please answer these questions by completing this online survey https://connect.microsoft.com/Survey/Survey.aspx?SurveyID=8725&SiteID=99. Thanks Osama Sajid, PowerShell Program Manager. P.S. this is the first time you are accessing PowerShell connect site, you need to register first. Use a LiveID to sign-in and look for Powershell in "Con...

Jun 23, 2009
Post comments count 0
Post likes count 0

PowerShell Remoting Protocol Documentation Available

PowerShell Team

William Vambenepe has a great blog entry Native "SSH" on Windows via WS-Management that is well worth a read.  I know that we've been busting our butts documenting our protocols but I hadn't realized that we actually were posting them where people could get them.  Apparently that is the case.  William found them and put 2 & 2 together and has a very good article explaining what we've done and the ramifications of it.  He did a particularly good job on nailing the ramifications portion.  I won't steal his thunder - you should go read his blog.  He also provides links to the specif...

Jun 23, 2009
Post comments count 0
Post likes count 0

PowerShell trainings

PowerShell Team

PowerShell FAQ : Where I can find useful trainings to learn Poweshell? Answer: Thanks to PowerShell MVPs, we have this very useful page http://www.powershellcommunity.org/LearningResources.aspx And this online videos series from Don Jones is very good as well. http://www.idera.com/Promo/Practical-PowerShell/  Thanks Osama Sajid, Program Manager Disclaimer: Microsoft does not own, influence or benefit from the third party trainings listed on the page.  This information is provided AS IS without any warranties.  

Jun 18, 2009
Post comments count 0
Post likes count 0

PowerBoots 0.2 is Now Available

PowerShell Team

Joel 'Jaykul' Bennett has just published the 0.2 version of PowerBoots on CodePlex.  PowerBoots is a library which allows you to write WPF GUIs in PowerShell.  He has a great tutorial HERE that you should definitely check out.  In fact, you should check it out even if you aren't interest in GUIs, it is a great example of the amazing sort of things you can do with PowerShell. Yup - that is right - Rich, powerful GUIs written in PowerShell.   This has been a dream of the PowerShell team since the very beginning.  We just love TK.  TK was a library that allowed people to write G...

Jun 17, 2009
Post comments count 0
Post likes count 0

Traps vs Try/Catch

PowerShell Team

Someone as asking about Traps vs Try/Catch and Jason Shirk (PowerShell developer) gave a nice concise and precise answer that I thought I would share with you: Enjoy! Jeffrey Snover [MSFT] Distinguished Engineer Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Jun 16, 2009
Post comments count 0
Post likes count 0

Summer Scripting Game : Its ON

PowerShell Team

The 2009 Summer Scripting Games have officially begun. For the last few days the Scripting Guys have been revealing the events one day at a time. For more information on the events, you can refer to this post from ScriptingGuys. This year’s scripting games are partnered with the Microsoft PowerShell MVP’s at PoshCode.org. The new PoshCode allows you to review other people's scripts, to vote on the scripts you think are best, and to modify other people's submissions and submit the changes you like. This is how most scripters work. They look for scripts, find something they think is useful, and modify it. The same ...