One of the nice things that has changed with PowerShell Version 3 as of CTP 2 is the way that the registry is displayed. In PowerShell Version 3, the PowerShell team updated the format files for the registry provider. To see this difference first do a directory listing for HKCU: in version 2. You will get a similar output to Figure 1.

Listing of HKCU: in PowerShell Version 2

Figure 1: Listing of HKCU: in PowerShell Version 2 (Click image for full-size)

As you can see the listing is compact and actually somewhat hard to read, especially if you are interested in the properties. Now, perform the same action in version 3. You will be presented with the output similar to Figure 2.

Listing of HKCU: in PowerShell Version 3

Figure 2: Listing of HKCU: in PowerShell Version 3 (Click image for full-size)

As you can see the display is longer and isn’t completely captured in the screenshot. You will notice though, that it is much easier to read and you can view the values for each property very cleanly. This makes using PowerShell to navigate the registry so much easier and is a definite plus to the language.

Disclaimer: This post covered PowerShell Version 3 CTP 2. Since this is a pre-release version, there is a possibility that the features described herein will be changed or completely removed from the final product.