Chapter 13. Registry and Software

This chapter covers accessing the registry and the administration of MSI-based and non-MSI-based installations. Examples in this chapter include

  • Reading keys and values

  • Creating and deleting keys and values

  • Enumeration of installed software

  • Installation and uninstallation of software

Registry

For accessing and manipulation of the Windows registry, Windows PowerShell (WPS) provides a PowerShell Provider. This means that the navigation commandlets (Set-Location, Get-ChildItem, New-Item, Get-ItemProperty, and so on) are available in the registry.

Reading Keys

The subkeys of a registry key are as follows (alias dir hklm:\software):

Get-ChildItem hklm:\software

You can also ...

Get Essential PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.