Friday, June 24, 2011

Citrix EndPoint Query Writing. Values with spaces

I found the documentation for query writing for Citrix endpoint is actually quite confusing.

For example:
CLIENT.REG('HKEY_LOCAL_MACHINE_64\\\\SOFTWARE\\\\Microsoft\\\\Windows\\ NT\\\\Example').VALUE == 'Joejoeinc at home'

Would produce fail as there are spaces in the value

To write this query properly we actually need to tell the query window that we want to have spaces in the value. You would write the Reg query as so.

CLIENT.REG('HKEY_LOCAL_MACHINE_64\\\\SOFTWARE\\\\Microsoft\\\\Windows\\ NT\\\\Example').VALUE == 'Joejoeinc\\ at\\ home'

That's  "\\SPACE" between each word.

Notes:
That to query a reg key that has a space in it like 'Windows NT' you need to write it like 'Windows\\ NT'



No comments :

Post a comment