Check Registry Value that has a "{"

I have a registry entry that I need to change. There is a value in the registry key that has two {{ and I need to remove one of the { but I can’t get a relevance to see how many systems have this error. This is what I’ve have:

q: exists value “Args” whose (it = “( -configs:”{{ ‘screen’:0, ‘x’:0, ‘y’:0, ‘cx’:1024, ‘cy’:770, ‘url’:‘The UPS Store | Center Management () v. 5.1.5’ }" -allowmultipleshellstart )") of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TUPSS\AppShortcuts\ENotary” of x64 registry
E: This expression contained a character which is not allowed.

It’s obvious picking up the { as some sort of parameter but I was hoping the quotes would negate it. I’ve tried double quotes as well but I get the same error.

Edit: I figured it out. I just had it search for the {{ From looking at it more, it was probably the number of quotes that was causing the hiccup not the {

3 Likes

What string are you looking for? If there are " characters in the string, you need to escape them with %22.