Hello
Several times through out the year we are asked for reports for auditing purposed to list out all the local administrators on a few of our critical systems. We have a basic report setup up that lists all local accounts, AD users and AD Groups that are in the Administrators group on the servers. The issue is we are now being asked what users are in the groups as well. Can the below report be modified to also list out the nested users in each AD group in separate column? Each column would be the different AD Group and members listed in that column. Below is our basic report that we currently have. Any help would be greatly appreciated.
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblUsersInGroup.Username,
tblUsersInGroup.Domainname,
tblUsersInGroup.Groupname,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblUsersInGroup On tblAssets.AssetID = tblUsersInGroup.AssetID
Where tblUsersInGroup.Groupname = 'administrators'
Order By tblAssets.AssetName