/build/static/layout/Breadcrumb_cap_w.png

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)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ