Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Test-Path Registry Key

$
0
0

Hi,

I need to test a value for a particular registry key. If this value equals 12.5.1000.767, I need the script to exit. If this key  is missing, I need the script to perform a certain action. Can you provide some info, on how to script this.

It seems we can use the test-patch cmdlet. 

PS C:\> Test-Path "HKLM:\SOFTWARE\Wow6432Node\ComputerAssociates\Unicenter ITRM"
True

Thanks


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>