Testing for the Presence of a Registry Key and Value

There are a number of different ways to test for the presence of a registry key and value in PowerShell. Here’s how I like to go about it. We’ll use an example key HKLM:\SOFTWARE\TestSoftware with a single value Version:

Click here to be redirected to the original post of this article on the author’s blog site where you can read the remainder of the article.

Posted in:
About the Author

Jonathan Medd

Powershell MVP, VMware vExpert, Co-host of the Get-Scripting Podcast and Co-author of the PowerCLI Book and PowerShell Deep Dives.