PowerShell Team

Automating the world one-liner at a time…

Virtual Server

Ben Pearce has a posted a nice deck describing how to manage Virtual Server with PowerShell. Check it out HERE. Enjoy! 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/...

Cmdlets vs. APIs

Some people have asked the question, "Why Cmdlets?". If you already have a reasonable API, what is the value in writing Cmdlets? I'll provide a quick answer here but we should probably include a good write up of this in our documentation. The most important thing to realize about cmdlets is that it is all about mindset and attitude. The ...

No PowerShell at LISA

If you were thinking about attending a PowerShell talk at LISA (Large Installation System Administration conference), the answer is NO. Someone suggested that the attendee's of this conference would love a PowerShell talk so I submitted my Monad Manifesto as a draft with the thinking was that I would bring that paper up to date, provide more ...

Free PowerGadgets

That got your attention didn't it? The guys over at PowerGadgets have introduced a PowerGadgets MVP Program. It sounds like it is modeled a bit after the Microsoft MVP program where if you are influential within the community, you get treated really nice (read free software). They are making the program available to IT pros, software vendors...

Do You Really Want To Use –EQ?

Sebastien posted a cool simple script HERE which effectively does a reverse lookup on aliases. Here is the code: function Get-AliasShortcut([string]$CommandName) { ls Alias: | ?{ $_.Definition -eq $CommandName } } Set-Alias gas Get-AliasShortcut Notice that he used –EQ. Whenever you find yourself using –EQ, ask yourself if that is ...

Heterogeneous Job Scheduling With PowerShell

JAMS (Job Access & Management System) is a commercial software product that provides job scheduling for Windows, OpenVMS, UNIX and Linux systems. It now provides full PowerShell support. What does that mean? They say that they support PowerShell in three ways: JAMS-specific PowerShell host to tightly control scripts under JAMs. I don't know ...

Heterogeneous Job Scheduling With PowerShell

JAMS (Job Access & Management System) is a commercial software product that provides job scheduling for Windows, OpenVMS, UNIX and Linux systems. It now provides full PowerShell support. What does that mean? They say that they support PowerShell in three ways: JAMS-specific PowerShell host to tightly control scripts under JAMs. I don't know ...

Partying with Join-Path

Did you realize that you can Join-Path can work on multiple items? PS> Get-Help Join-Path -parameter *path -path Specifies the main path (or paths) to which the child-path is appended. Wildcards are permitted. The value of Path determines which provider joins the paths and adds th e path delimiters. The Path parameter is required, ...

Hosting Windows PowerShell Part 2 of 3

David Aiken is at it again. In his latest segment of the DFO show – Hosting Windows PowerShell Part 2, he converts the code he produced in Part 1 to use strong types by casting the PSObject.BaseObject. From there, he add the ability to select one the SERVICEs he displays and then to Stop it using the Stop-Service cmdlet. In Part 1, he showed...

Surfing the Web the PowerShell Way

I spend a lot of my time in the command line (surprised?). That said, I also spend a lot of time surfing the web. Here is a script that I wrote that lets me surf the web from PowerShell: UrlTemplateMap = @{ "bs" = "http://blogsearch.google.com/blogsearch?hl=en&q={0}&ie=UTF-8&scoring=d" "dr" = "http://drudgereport.com" "gtr" = "http://www....