Finding which domain a system belongs to

(imported topic written by boostaz191)

I searched for a couple of days trying to find out how to have BES tell me which of my computers are in which domain… We currently have an nt4 domain and an AD domain but who is in which… Here is what I found.

string values of selects (“Domain from Win32_computersystem”) of wmi “\root\cimv2”

This seems to work very well

(imported comment written by dgibson91)

In general, WMI queries are slow. Try using the builtin active directory inspector:

concatenation “.” of values of components whose (type of it = “DC”) of distinguished name (distinguished name of local computer of active directory)