PowerShell Team

Automating the world one-liner at a time…

Latest posts

Aug 30, 2008
Post comments count 0
Post likes count 0

PowerShell vs TSQL & Why Learn PowerShell

PowerShell Team

Dan Jones has a great blog HERE explaining why the SQL team decided to support PowerShell when they already had T-SQL.  It originally started as an email thread responding to the question posed by an MVP.  This was a great question to ask.  In many ways, PowerShell is merely trying catch up to what the SQL team has been doing for years but do so in a way that everyone can participate.  As you'll see from Dan's blog, we did it in a way that it made sense for the SQL team to embrace it.  Let's be clear about how what an awesome standard the SQL team set.  ...

Aug 25, 2008
Post comments count 0
Post likes count 0

PowerShellPlus V2.0

PowerShell Team

One of the highlights of my IT Forum talks last year came when I had Tobias Weltner demo PowerShellPlus V1.0.  It rocked the house.  The power and thoughtfullness of the tool was very clear. Since then, Tobias has teamed up with the folks over at Idera to launch a new version of PowersShellPlus they are calling PowerShellPlus Professional Edition.  Rick Pleczko is the CEO of Idera and I've known him for many years.  He is a super smart guy who has always had a good bead on the needs of the IT community so I'm pretty optimitistic about the 2 of them getting together. A beta release of the new ...

Aug 25, 2008
Post comments count 0
Post likes count 0

Richard Siddaway's talk in Sweden Sept 16th

PowerShell Team

If you're going to be in Sweden on Sept 16th, you have the opportunity to hear Richard Siddaway give 2 PowerShell talks covering: Richard is the founder of the world's first Powershell User Group in the UK and the author of a great blog (that I monitor regularly) HERE.  Following the talk will be the first meeting of the Swedish\Nordic PowerShell User Group. Cheers! Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at:  http://www....

Aug 19, 2008
Post comments count 0
Post likes count 0

V2 Interview: Universal Code Execution Model

PowerShell Team

At TechEd, I did an interview with Kevin Remde where I discussed the V2 Universal Code Execution model in detail.  You can see it at:  Universal Code Execution Model (UCEM)—a vision of how PowerShell scripts can run anywhere, anytime in just the right semantics. You can access the entire library of interviews HERE. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at:  http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Aug 12, 2008
Post comments count 0
Post likes count 0

Some WMI instances can have their first method call fail and get-member not work in PowerShell V1

PowerShell Team

Due to a problem retrieving the available methods in V1 that we have worked around for the upcoming version of PowerShell, you might experience that the first method call to a WMI object fails with a message that mentions:            Exception calling GetType() with “0” argument(s): “You cannot call a method on a null-valued expression.”   This happens when calling the first method in objects that are not in the root\cimv2 like:            $instance=([wmiclass]"root\MyNamespace:MyObject").CreateInstance() &n...

Aug 12, 2008
Post comments count 0
Post likes count 0

When NOT To Use "WHERE"

PowerShell Team

I've seen a number of scripts that look like this:  GET-XXXX | Where {$_.name -eq "foo"}  or GET-XXXX | Where {$_.name -like "A*"} Whenever you see code like this, it is a sign that the GET-XXXX is not designed correctly.   (NOTE:  GET-XXXX is NOT a porn retrieval cmdlet - it is a standin for any GET-<SOMETHING> cmdlet). The whole point of a cmdlet is to think about the USER and deliver the correct experience.  As a GENERAL rule, we encourage cmdlet developers to leverage PowerShell utilities like WHERE, SORT, FORMAT, etc and NOT to put that function into their cmdlets.&...

Aug 12, 2008
Post comments count 0
Post likes count 0

PowerShell Abstractions & the Community

PowerShell Team

Smart guy Don Jones has a good blog entry where he discusses ABSTRACTIONs with the question, "Do I need .NET, WMI, COM, and all that to use PowerShell?"  ERGO:  PS V2 enables the community to create and share the correct user abstractions so you don't have to wait for MSFT. NOTE: Even when MSFT provides full cmdlet coverage - you'll still need to know which cmdlets to use and how to stich them together to solve your specific problem. This is why I tell everyone that ALL ADMINS NEED TO BE ACTIVELY ENGAGED IN THE COMMUNITY.  What's the best way to start with the community? &n...

Aug 9, 2008
Post comments count 0
Post likes count 0

All About Modules

PowerShell Team

One of the coolest new features of Windows PowerShell is PowerShell modules.  I've just written a tutorial about how to use them on my personal blog. You can check out the full post for more details, but here are some easy things to remember about modules: The module examples also include a few PowerShell functions you might use in day-to-day life, such as being able to Search-WindowsDesktop, Get-RecordedTV, or Remove-RecordedTVBySeries, and are a great practical example of how you can use modules to cleanly separate code.   Check it out. Hope this helps, James Brundag...

Jul 30, 2008
Post comments count 0
Post likes count 0

VMWare PowerShell Cmdlets Released (And Opportunity to Win $$$$)

PowerShell Team

On Monday VMWare offically released their PowerShell cmdlets in a ship vehicle called the VMWare Infrastructure (VI) Toolkit.  What could be better than that?  Yup - you guessed it - it's FREE!!  Check out the details HERE. Download the free toolkit HERE. Free!  What could be better than that?  Well they could pay you to use it.  :-)   Well ...  actually, it's almost that good.   VMWare is holding a Scripting Contest for the best scripts using the VI toolkit.  The winner will receive an all-expense paid trip to VMWorld 2008 Las Vegas or $5,000...