PowerShell Team

Automating the world one-liner at a time…

PowerShell 2.0 – Differences Between Win7Beta and Win7RC

Oisin Grehan, PowerShell MVP has done a diff between Powershell 2.0 that shipped with Win7 Beta and Win RC... very useful if you have moved to RC build (or planning to do so) http://www.nivot.org/2009/05/22/PowerShellV20DifferencesBetweenCTP3Win7BetaAndWin7RC.aspx. PowerShell team thanks Oisin for this useful blog post. Osama Sajid, Program ...

Adding Custom Cmdlet Help for Providers

A new feature of Windows PowerShell 2.0 lets you write custom cmdlet help for Windows PowerShell providers. This blog explains how to do it. (The topic will also be covered in excruciating detail in MSDN, but we don't want you to wait.)   What's a Provider? A Windows PowerShell provider is a C# program that exposes a data store to Windows...

Get-WindowTitle.ps1

I do this so frequently that I finally put it into a script called Get-WindowTitle.ps1 . Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle –AutoSize Here is what it does: [4696:0]PS> Get-WindowTitle   Id Name              MainWindowTitle &...
Comments are closed.0 1

Processing Event Logs in PowerShell

PowerShell V2 ships with two sets of cmdlets for processing event logs, one is *-EventLog set and other is Get-WinEvent.   Reading Events: As you can see there are two cmdlets to GET events from event logs , Get-WinEvent and Get-EventLog. Having two cmdlets to do the same thing seems to be counter-intuitive and I will explain the ...

V2 Quick Tips: Finding Extra Outputs From Your Script

One of the nifty features of functions in PowerShell is that they can return as many results from as many places as you’d like.  In fact, any method or cmdlet that would give you an output if you try it on the command line will also return values from a function.  While this can give you a lot of powerful capabilities (like easily ...

PowerShell session at TechEd 2009

Ibrahim and I presented session WSV402 at TechEd last week with great attendance. Attached are the slides and demos from the talk. Dan Harman, Program Manager   Dan Harman  Program Manager TechEd2009-WSV402-Demos.zip...

Summer Scripting Games 2009

  Scripting is fun .. and it gets better when you do it as part of Scripting Games hosted by Microsoft Script Center . But wait there is more - this year Scripting Center is hosting Summer Scripting Games in collaboration with PowerShellCommunity.org and PoshCode.org .This announcement comes straight from Tech.Ed 2009.  See full ...

Updates from Tech.Ed 09

  I am not attending Tech.Ed but I am getting updates from my friends. PowerShell team is very excited about the offering we have for Tech.Ed this year... frankly, what is the best way to save money on your IT Infrastructure... Use PowerShell v2 and automate you tasks. PowerShell v2 is getting good focus in the keynote addresses and demos...