→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎06-18-2013 12:39 AM
‎06-19-2013 08:06 PM
‎06-20-2013 09:08 PM
jsmisek wrote:
What specifically does "Last Change" encompass in regards to what changes are made to an account?
‎06-18-2013 11:50 PM
‎06-18-2013 08:48 PM
‎06-18-2013 04:25 PM
‎06-19-2013 03:49 PM
jsmisek wrote:
I"m simply attempting to produce a list of each account username, first and last if applicable. Then of course display the OU so that it gives us an idea of whether it's Service account or User account.
Select Top 1000000 tblADusers.Username,
tblADusers.Userdomain,
tblADusers.Displayname,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.OU,
tblADusers.Lastchanged
From tblADusers
Order By tblADusers.Userdomain,
tblADusers.Username
‎06-18-2013 01:31 AM
SELECT TOP 1000000
tblADusers.Username AS AD_Username,
tblADUsers.Userdomain,
tblUsersInGroup.Username AS InGroup_Username,
tblUsersInGroup.Groupname,
tblUsersInGroup.Domainname,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Username AS Asset_Username,
tblAssets.Description
FROM
tblADusers
INNER JOIN tblUsersInGroup ON (tblUsersInGroup.Username = tblADusers.Username)
And (tblUsersInGroup.Domainname = tblADusers.Userdomain)
INNER JOIN tblAssets ON tblAssets.AssetID = tblUsersInGroup.AssetID
WHERE
tblUsersInGroup.Admingroup = 1
ORDER BY
tblADUsers.Userdomain,
tblADusers.Username,
tblAssets.AssetUnique
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now