Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Somehow deleted Computer: Duplicate SID
dteague
#1 Posted : Thursday, December 22, 2011 9:03:09 PM

Rank: Premium user

Groups: Premium Users
Posts: 64
Location: Greensburg, IN
Somehow I have deleted this report. Can someone provide me with the SQL so I can add back this report?

Thanks!
Lansweeper
#2 Posted : Tuesday, December 27, 2011 9:35:00 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
You may use the details provided below to recreate the specified report.


View name
duplicateSID

Report name
Computer: Duplicate SID


SQL code

Quote:
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique, tblComputers.Domain, Web40OSName.OSname As OS, tblOperatingsystem.Description, tblUsers.SID, Duplicates.Total, tblComputers.Lastseen, Web40OSName.Compimage As icon From tblComputers Inner Join tblUsers On tblComputers.Computername = tblUsers.Computername Inner Join web40ActiveComputers On web40ActiveComputers.Computername = tblComputers.Computername Inner Join (Select Top 1000000 tblUsers.SID, Count(tblUsers.UserID) As Total From tblComputers Inner Join tblUsers On tblComputers.Computername = tblUsers.Computername Inner Join web40ActiveComputers On web40ActiveComputers.Computername = tblComputers.Computername Group By tblUsers.SID Having tblUsers.SID Like '%-500' And Count(tblUsers.UserID) > 1) Duplicates On tblUsers.SID = Duplicates.SID Inner Join tblOperatingsystem On tblComputers.Computername = tblOperatingsystem.Computername Inner Join Web40OSName On Web40OSName.Computername = tblComputers.Computername Order By Duplicates.Total Desc, tblUsers.SID, dbo.tblComputers.Computer

dteague
#3 Posted : Wednesday, December 28, 2011 7:13:09 PM

Rank: Premium user

Groups: Premium Users
Posts: 64
Location: Greensburg, IN
Thanks!
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba