Possible to Identify Static DNS Entry Using K1000
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!
-
are these machine dhcp enabled? are you just trying to see if they have different numbers then what you want? - SMal.tmcc 10 years ago
Answers (3)
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
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.
Thanks,
UPDATE:
should work like this:
ShellCommandTextReturn(cmd /c reg query "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces" /s | FIND "NameServer")