troubleshooting Question

Help using test-path to check for the existence of a registry key in Powershell

Avatar of ndalmolin_13
ndalmolin_13Flag for United States of America asked on
2 Comments1 Solution9 ViewsLast Modified:
Hello All,

I'm trying to test for the existence of a registry key using the test-path command.  Here is what I'm doing:
test-path -Path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F66F74D4-ACF1-48EE-BF6F-2C6629581859}'

I know for a fact this exists, but the test-path is coming up as "False".

Any help would be appreciated.

Seth Simmons
Lead Systems Administrator
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros