‎07-07-2010 10:56 PM
‎07-16-2010 09:57 PM
‎07-16-2010 03:44 PM
‎07-12-2010 07:06 PM
‎07-12-2010 07:03 PM
‎07-12-2010 06:45 PM
SELECT TOP 1000000 dbo.tblComputers.ComputerUnique, dbo.tblUsersInGroup.Computername, dbo.tblComputers.Domain,
dbo.tblOperatingsystem.Description, dbo.tblUsersInGroup.Domainname, dbo.tblUsersInGroup.Username, dbo.tblUsersInGroup.Lastchanged,
dbo.Web40OSName.Compimage AS icon
FROM dbo.tblUsersInGroup INNER JOIN
dbo.tblComputers ON dbo.tblUsersInGroup.Computername = dbo.tblComputers.Computername INNER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername INNER JOIN
dbo.web40ActiveComputers ON dbo.tblComputers.Computername = dbo.web40ActiveComputers.Computername INNER JOIN
dbo.Web40OSName ON dbo.Web40OSName.Computername = dbo.tblComputers.Computername LEFT OUTER JOIN
(SELECT DISTINCT *
FROM (SELECT dbo.tblComputers.Computer AS Domain, dbo.tblUsers.Name AS Username
FROM dbo.tblComputers INNER JOIN
dbo.tblUsers ON dbo.tblComputers.Computername = dbo.tblUsers.Computername
WHERE dbo.tblUsers.BuildInAdmin = 1
UNION
SELECT tsysadmins.Domain, tsysadmins.AdminName AS username
FROM tsysadmins) DERIVEDTBL) localadmins ON dbo.tblUsersInGroup.Domainname LIKE localadmins.Domain AND
dbo.tblUsersInGroup.Username = localadmins.Username
WHERE (localadmins.Domain IS NULL) AND (localadmins.Username IS NULL) AND (dbo.tblUsersInGroup.Admingroup = 1)
ORDER BY dbo.tblComputers.Computer
‎07-12-2010 06:26 PM
Select Top 1000000 dbo.tblComputers.ComputerUnique, dbo.tblUsersInGroup.Computername, dbo.tblComputers.Domain, dbo.tblOperatingsystem.Description, dbo.tblUsersInGroup.Domainname, dbo.tblUsersInGroup.Username, dbo.tblUsersInGroup.Lastchanged, dbo.Web40OSName.Compimage As icon From dbo.tblUsersInGroup Inner Join dbo.tblComputers On dbo.tblUsersInGroup.Computername = dbo.tblComputers.Computername Inner Join dbo.tblOperatingsystem On dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername Inner Join dbo.web40ActiveComputers On dbo.tblComputers.Computername = dbo.web40ActiveComputers.Computername Inner Join dbo.Web40OSName On dbo.Web40OSName.Computername = dbo.tblComputers.Computername Left Outer Join (Select Distinct * From (Select dbo.tblComputers.Computer As Domain, dbo.tblUsers.Name As Username From dbo.tblComputers Inner Join dbo.tblUsers On dbo.tblComputers.Computername = dbo.tblUsers.Computername Where dbo.tblUsers.BuildInAdmin = 1 Union Select tsysadmins.Domain, tsysadmins.AdminName As username From tsysadmins) DERIVEDTBL) localadmins On dbo.tblUsersInGroup.Domainname Like localadmins.Domain And dbo.tblUsersInGroup.Username = localadmins.Username Where localadmins.Domain Is Null And localadmins.Username Is Null And dbo.tblUsersInGroup.Admingroup = 1 Order By dbo.tblComputers.Computer
‎07-12-2010 06:18 PM
‎07-11-2010 12:38 PM
‎07-12-2010 03:04 AM
Lansweeper wrote:
Could you post the definition of your unauthorised administrators report please.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now