Looking to see, if either by scripting or Custom Inventory Rule, if it is possible to find out if a system has a static IP in either it's primary or secondary DNS entries. 

Note...do not need to know what DNS the system is using; rather only if there is a static entry actually listed.

Thank you as always!

Answer Summary:
1 Comment   [ - ] Hide Comment


  • are these machine dhcp enabled? are you just trying to see if they have different numbers then what you want?
Please log in to comment

Community Chosen Answer



you can do a wmic query and see the numbers assigned also

I think this is what you are looking for.

You can create a custom software inventory and then do a report where that item contains part of your ip string

ShellCommandTextReturn(cmd /c reg query HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces /s /v nameserver)

the report will look like this



Answered 06/06/2014 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity



Perfect. This is exactly what I needed! Thank you so much for your help as always.

Answered 06/06/2014 by: dtobias_keenan
Second Degree Green Belt

Please log in to comment

how can you make this work on Windows XP clients?

ShellCommandTextReturn(cmd /c reg query "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces /s /v NameServer")

Does not work.


should work like this:

ShellCommandTextReturn(cmd /c reg query "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces" /s | FIND "NameServer")

Answered 04/28/2015 by: Fantomas2501
White Belt

Please log in to comment