Report of Windows servers including domain membership?

I’m trying to find a way to generate a report of all windows computers and include the domain they are a member of in the report.

Can anyone assist on how to do this?

use this on your report:

string values of selects "DomainName from Win32_NTDomain" of wmi

This is how you get the domain controller from there you can use the already use to concatenate or you can use the windows already used

https://msdn.microsoft.com/en-us/library/aa394224(v=vs.85).aspx

Im not sure if there is a way to do it with BigFix, but if you can avoid using WMI when BigFix has something it will take less of a toll on the systems and repose time.

Non-WMI version for custom webreport
<?relevance table of concatenation of (tr of (item 0 of it & item 1 of it) ) of (td of name of it, td of concatenation "." of parenthesized parts of matches (regex "DC=(\w+)") of value of result from (bes property "Active Directory Path") of it) of bes computers whose (operating system of it contains "Win" AND value of result from (bes property "Active Directory Path") of it != "<none>") ?>