Good Afternoon All,
I'm looking for a report to query all PCs on a specific domain and make sure a custom username has full local admin rights on each PC. Any help would be greatly appreciated. I have this thus far:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblUsersInGroup.Username,
tblUsersInGroup.Domainname,
tblUsersInGroup.Groupname
From tblAssets
Inner Join tblUsersInGroup On tblAssets.AssetID = tblUsersInGroup.AssetID
Where tblAssets.AssetID Not In (Select tblUsers.AssetID From tblUsers
Where tblUsers.Name = 'saveme') And tblUsersInGroup.Groupname =
'administrators'
Order By tblAssets.AssetName
However, I have a strong feeling it's not exactly what I need. saveme is the name of the custom local admin account I'm looking for I need to make sure it exists on all PCs.