How do i add Computer Name to this report? Or the ability to Drill down to a list of the duplicates or the associated computers.
I see that you can already create a report to find duplicate sids.
The -500 account at the end means that this is the local administrator account.
Code:
Select Top 100 Percent tblUsers.SID, Count(tblUsers.UserID) As Total
From dbo.tblComputers Inner Join
tblUsers On dbo.tblComputers.Computername = tblUsers.Computername
Group By tblUsers.SID
Having tblUsers.SID Like '%-500'
You can create reports based on this.