‎03-05-2010 04:17 PM
‎03-18-2010 06:03 PM
‎03-18-2010 06:02 PM
‎03-18-2010 03:36 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
‎03-06-2010 12:38 AM
SELECT
dbo.tblComputers.Computer, dbo.tblUsers.Name AS Username
FROM
dbo.tblComputers INNER JOIN dbo.tblUsers ON
dbo.tblComputers.Computername = dbo.tblUsers.Computername
WHERE
(dbo.tblUsers.BuildInAdmin = 1) and (dbo.tblUsers.Name <> 'Administrator')
‎03-06-2010 12:10 AM
‎03-05-2010 09:32 PM
‎03-06-2010 11:20 AM
mrdaytrade wrote:
We have several departments that span across the state, this was a handy way of seeing who was forgetting to rename or delete and add the new admin account.
‎03-05-2010 11:27 PM
mrdaytrade wrote:
I actualy liked it the old way (3.5). This was where we were able to see the computers on the domain that still have a local admin account with the name Administrator... this is a big no no, and we always were able to detect the PC and correct the situation. Now, 4.0 takes that out of the report without anyway to change that. We have several departments that span across the state, this was a handy way of seeing who was forgetting to rename or delete and add the new admin account.
‎03-05-2010 06:33 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now