DAMAdmin
asked on
LDAP query
I am trying to run a query using Active Directory and I need the following information:
A breakdown of each server by name with logon user id (last logged on user)
# of computers (desktops and laptops) with computer name and log on user id (last logged on user)
# of printer queues with queue name and server name where the print queue is in.
I was able to pull the following information from AD using these queries:
-For servers:(&(objectCategory= computer)( !operating System=Win dows XP Professional)(!operatingSy stem=Windo ws XP Tablet Edition)(!operatingSystem= Windows 2000 Professional))
-For workstations:(&(objectCate gory=compu ter)(!oper atingSyste m=Windows 2003 Server)(!operatingSystem=W indows 2000 Server)(!description=Virtu al Server Account))
-For printers:(&(objectCategory =printQueu e)(serverN ame=*))
A breakdown of each server by name with logon user id (last logged on user)
# of computers (desktops and laptops) with computer name and log on user id (last logged on user)
# of printer queues with queue name and server name where the print queue is in.
I was able to pull the following information from AD using these queries:
-For servers:(&(objectCategory=
-For workstations:(&(objectCate
-For printers:(&(objectCategory
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.