Win OS – Get Domain Information – Using WMI

Background Using WMI, Let us get the short domain name Windows Management Instrumentation (WMI) Script Outline Issue "Get-WmiObject -Class Win32_NTDomain" Capture result of Get-WmiObject in a object Result is actually a list Iterate through the list Each time place list node in an object Here are the important attributes DnsForestName DomainName DomainControllerName DomainControllerAddress Roles Powershell … Continue reading Win OS – Get Domain Information – Using WMI