
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2010 04:17 PM
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2010 06:03 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2010 06:02 PM


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2010 03:36 PM
This will allow for "%" wildcard in the computer field.
Let me know if this is what you want.
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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')
You just need to change 'Administrator' to whatever you want the name to be.
Sebouh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2010 12:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2010 09:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
Take a look at report "Computer: Local administrator account name"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
I think the best course of action is for you to is to create a custom report in 4.0 that uses the original query from 3.5.2.
Sebouh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2010 06:33 PM
The query in 3.5 is actually wrong (sebouh is correct)
The local buildin admin ends with -500
http://support.microsoft.com/kb/243330
