Category Archives: PowerShell 2.0

PSCX 2.1 and 3.0 Release Candidates Posted

Oisin and I have been busy prepping the PowerShell Community Extensions to support Windows PowerShell 3.0.  With this release, we are providing two packages.  There is a that is xcopy deployable just like PSCX 2.0.  Just remember to unblock … Continue reading

Posted in PowerShell 2.0, PowerShell 3.0, PSCX | 3 Comments


Occasionally folks want to be able to create an EXE from PoweShell.  PowerShell can’t do this by itself but this can be done with PowerShell script.  Essentially what you can do is create a simple console EXE program that embeds … Continue reading

Posted in PowerShell 2.0 | 82 Comments

Get-TfsPermssion–Missing command from Team Foundation Power Tools PowerShell Snapin

The TFPT PowerShell snapin is a nice start but it is missing a key cmdlet IMO and that is Get-TfsPermission.  Since TFS allows you to add individual users all over your directory structure, it can be quite hard rationalizing exactly … Continue reading

Posted in PowerShell 2.0 | Leave a comment

Waiting for Out-GridView Windows to Close

This came up on StackOverflow and thought it was worth reposting here.  It shows how fancy you can get with low-level Win32 API calls using the new Add-Type cmdlet.  The following code essentially checks for the existence of *any* window … Continue reading

Posted in PowerShell 2.0 | 1 Comment

Windows PowerShell Localized Online Help

Fresh from the PowerShell team: Enjoy!

Posted in PowerShell 2.0 | Leave a comment

JSON Serialization/Deserialization in PowerShell

Since PowerShell is based on .NET and makes it easy to access .NET functionality, PowerShell can use JSON serializer that comes with .NET.  The follow snippet of code shows how to deserialize a JSON string into an XML object and … Continue reading

Posted in PowerShell 2.0 | 9 Comments

PowerShell – Find-PInvoke.ps1

I had a need to find all PInvokes in an assembly.  At first I thought about searching the source code since I had it but ran into various problems: Commented out PInvokes DLL names specified via constants [Updated: 11-02-2009] I decided … Continue reading

Posted in PowerShell 2.0 | 2 Comments

PowerShell 2.0 – Accessing Different Profiles

Just ran across a new feature of PowerShell 2.0 that is convenient.  Need the path to the various profile scripts on a system?  Try this: PS> $profile.psextended | Format-List AllUsersAllHosts       : C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1AllUsersCurrentHost    : C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1CurrentUserAllHosts    : C:\Users\Keith\Documents\WindowsPowerShell\profile.ps1CurrentUserCurrentHost : C:\Users\Keith\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 To access … Continue reading

Posted in PowerShell 2.0 | Leave a comment