Custom Inventory Field to find if @="" is in registry location.
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
-
Have you tried using RegistryValueEquals or RegistryValueReturn instead of using the reg command? - chucksteel 7 years ago
Answers (0)
Please log in to answer
Be the first to answer this question