PowerShell Team

Automating the world one-liner at a time…

Latest posts

Sep 6, 2008
Post comments count 0
Post likes count 0

Hate Add-Member? (PowerShell's Adaptive Type System to the Rescue)

PowerShell Team

Do you hate Add-Member as much as I do? Wait - maybe you aren't familiar with Add-Member or the glory of PowerShell's Adaptive Type System.  (ATS).  When I looked at the .NET type system, my reaction was "....almost".  I'm not trying to throw a rock at .NET - anyone that knows me knows how much I love .NET but the reality is that it's type system "almost" meets the needs of a management system ... but doesn't.  That is why we invented the Adaptive Type System.  There are 4 main components of ATS: Type Adapters.  A lot of technologies implement their own type systems within .NET.&nb...

Sep 6, 2008
Post comments count 0
Post likes count 0

OMG – Check This Out (Data Visualization with PowerShell)

PowerShell Team

Doug Finke has been having fun working with PowerShell and .NetMap from MSR.  Now he has written this AMAZINGLY tiny script to call the World Bank's WebService and visualize the world by income level.  This has to be seen to be believed. If you were ever unclear on the power of the compositional model (toolkit approach) or the productivity you can achieve with PowerShell - just go visit this blog.  Check it out HERE. Doug - awesome stuff.  Truely wonderful.  You've made my day. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog a...

Sep 4, 2008
Post comments count 0
Post likes count 0

Join Me Tonight on the PowerScripting Podcast

PowerShell Team

Tonight at 9pm EST (6pm PST) (UTC-4), I'll be one of Hal Rottenberg's guiests on his live Podcast.,  You can find the live show details at the top right corner of http://powerscripting.net.  Apparently you'll be able to ask questions but not throw beer bottles (the internet is awesome!).  I have no idea what we'll talk about so who knows what will come out.  Let's just hope I don't say anything that get's me fired.  ha ha.  It should be fun - join us. Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at:    http://blog...

Sep 3, 2008
Post comments count 0
Post likes count 0

Text Output Is Not a Contract

PowerShell Team

In PS V1, this is what you get for GET-COMMAND -SYNTAX PS> Get-Command Get-Process -SyntaxGet-Process [[-Name] <String[]>] [-ComputerName <String[]>] [-Module] [-FileVersionInfo] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] [-ErrorVariable <String>] [-WarningVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]Get-Process -Id <Int32[]> [-ComputerName <String[]>] [-Module] [-FileVersionInfo] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] [-Erro...

Sep 2, 2008
Post comments count 0
Post likes count 0

Speeding Up PowerShell Startup – Updating Update-Gac.ps1

PowerShell Team

Have I ever mentioned how much I love the community?  Today Kirill Osenkov posted a comment on the blog pointing out that there was an API to get the .NET Framework install path:  RuntimeEnvironment.GetRuntimeDirectory() .  I didn' t know that and now I do.  :-) I took the opportunity to rewrite Update-Gac.ps1 and in the process I decided to make it better.  This illustrates the point I've made many times.  With GUIs - you click buttons and that the end you what do you have?  Maybe the system works, maybe it doesn't and that is it.  With scripting, you end up with a system ...

Sep 1, 2008
Post comments count 0
Post likes count 0

Get-Constructor Fun

PowerShell Team

Here is a quick and dirty function I wrote after getting PO'd at having to look up documentation for constructors: NOTE:  Jim Truher thinks long typenames are useful so I added a switch (-FullName) so you could get them if you want them. function get-Constructor ([type]$type, [Switch]$FullName){    foreach ($c in $type.GetConstructors())    {        $type.Name + "("        foreach ($p in $c.GetParameters())        {          &...

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....