Tagged: WMI CIM
- May 17, 2016 at 11:20 am #39210
I have a list of servers 2003 through 2012 r2 that I need to change from having a DNS suffixes order to Append primary and connection specific DNS Suffixes and check the box Append parent Suffixes of the primary DNS Suffix.
What I would really like is to have a way to discover the answers better on my own.
Here is me looking around:
$nics = [wmiclass]'win32_Networkadapterconfiguration' [wmiclass]'Win32_NetworkAdapterConfiguration' $nics.GetMethodParameters("SetDNSSuffixSearchOrder") $nics | select -ExpandProperty Properties DNSDomainSuffixSearchOrder DNSServerSearchOrder $cimClass = Get-CimClass win32_Networkadapterconfiguration $cimClass.CimClassMethods $cimClass.CimClassMethods["SetDNSSuffixSearchOrder"].Parameters $cimClass.CimClassMethods["EnableDNS"].Parameters $cimClass.CimClassMethods["EnableDNS"].Qualifiers Get-WmiObject -Class win32_NetworkadapterconfigurationMay 17, 2016 at 11:42 am #39211
Get-CimClass is definitely the way to go, at least one machines with PowerShell v3 or better. But, a Google for the class name will also turn up the doc page for that class, which can be just as helpful. But otherwise, what you're doing is about what I'd do.May 18, 2016 at 4:47 am #39228
Not having much luck finding the specific settings, going to try checking and unchecking the boxes and see if I can see the differences in the settings.June 28, 2016 at 8:21 pm #45161June 29, 2016 at 1:00 am #45198
Very Nice! Thanks Elisabeth.
You must be logged in to reply to this topic.