I needed a SCCM report to count all enabled users in every domain. This is different to the builtin ‘Count users by domain’ as that one only lists domain users that have logged onto a system (that one is from v_R_System). Query = SELECT Windows_NT_Domain0, count(*) FROM v_R_User WHERE User_Account_Control0 = ’512′ GROUP BY Windows_NT_Domain0 [...]