Base report for services:
Select Top 1000000 Case
When tblADusers.Displayname Is Null Or
tblADusers.Displayname = '' Then tblADusers.Userdomain + '\' +
tblADusers.Username
Else tblADusers.Displayname
End As Displayname,
tblADusers.Firstname,
tblADusers.MiddleName,
tblADusers.Lastname,
tblADusers.OU,
Case
When Coalesce(tblADusers.IsEnabled, 0) = 0 Then 'False'
Else 'True'
End As EnabledInAD,
tblADusers.Name,
'usersm.png' As Icon,
tblADusers.Lastchanged,
tblADusers.whenCreated,
tblADusers.whenChanged,
tblADusers.LastLogon,
tblADusers.IsEnabled,
tblADusers.ExpirationDate,
tblADusers.LockoutDate,
tblADusers.PasswordNeverExpires,
tblADusers.PasswordLastSet,
tblADusers.UserCannotChangePassword,
tblADusers.PasswordRequired,
tblADusers.PasswordExpirationDate,
tblADusers.PasswordChangeableDate,
tblADusers.UPN,
tblADusers.Description,
tblADusers.email
From tblADusers
Where (tblADusers.OU Like N'%OU=Network%resources,%DC=your,%DC=domain,%DC=local%' Or
tblADusers.OU Like N'%OU=Services,%DC=your,%DC=domain,%DC=local%' Or
tblADusers.OU Like N'%CN=Users,%DC=your,%DC=domain,%DC=local%')