Contains not Defined

I am trying to find a value in a registry key that contains a string, but the message returned is “contains is not defined for registry key value”. Is there a way to use contains to find a string in registry key values? Equals works but not contains.

not exists values whose (it = "iodegoagldeabbkcidchfdifcghijihb;file:///C:/Program Files (x86)/Pegasystems/Pega Browser Extension/BrowserExtensions/Chrome/update.xml") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" of native registry

The issue here has to do with the data type. Try:

not exists values whose (it as string contains “iodegoagldeabbkcidchfdifcghijihb;file:///C:/Program Files (x86)/Pegasystems/Pega Browser Extension/BrowserExtensions/Chrome/update.xml”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist” of native registry

3 Likes

Got it. Thanks Aram!

2 Likes