/build/static/layout/Breadcrumb_cap_w.png
05/02/2017 587 views

I am looking for a way to report if a computer has @="" in a registry path.

From what I can tell @ isn't a value, so I cant report on that information.

I tried:

ShellCommandTextReturn(cmd /c reg query "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /v @)

But it didn't work. When I tried in cmd prompt it says "ERROR: The system was unable to find the specified registry key or value."

I then tried this:

ShellCommandTextReturn(cmd /c reg query "hklm\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" /ve)

But it only returns (Default) REG_SZ.

I have used this method before to pull values out of the registry, but @="" isn't a value.

PS. I'm sorry I don't know exactly what to tag this as.

1 Comment   [ + ] Show comment

Comments

  • Have you tried using RegistryValueEquals or RegistryValueReturn instead of using the reg command?

There are no answers at this time