Determine the domain in which a computer belongs? Use the Win32_ComputerSystem class and check the value of the Domain property. You can also use the DNSDomain property in Win32_NetworkAdapterConfiguration. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : ...
More...