As I read the registry variable

(imported topic written by schmucke91)

hi all, I have a question to read a variable in the record which is:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\parameters\srvcomment

I’m using this command line

Value “srvcomment†of (Key “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\parameters†of it) of registry

and gives me the following response

Error: This expression contained a character which is not allowed.

also if on multiple computers is not variable as I run it with an if conditional

thanks

(imported comment written by jeremylam)

The forum software seems to agree there are some weird characters in your relevance statement. It looks like you might be using “smart quotes”, pasted from a word processor.

Can you try the relevance statement with normal quotes?

(imported comment written by schmucke91)

perfect here sent it again

Value “srvcomment" of (Key “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\parameters" of it) of registry