kam_uk
asked on
Query regarding AD import
Hi
We are running a Windows 2003 Active Directory forest, comprising of two domains.
The forest root is kam.com, the domains are uk.kam.com and us.kam.com
We have a new application and we'd like to import a list of users from our AD forest.
Does anyone know how to do this and what sort of permissions the account that runs the query will need?
Thanks!!
We are running a Windows 2003 Active Directory forest, comprising of two domains.
The forest root is kam.com, the domains are uk.kam.com and us.kam.com
We have a new application and we'd like to import a list of users from our AD forest.
Does anyone know how to do this and what sort of permissions the account that runs the query will need?
Thanks!!
Depends of the format of requested data, but you can use csvde, ldifde or dsquery/dsget to export the data.
csvde -f export.csv -d "DC=uk,DC=kam,DC=com" -r "(ldap-filter-criteria)" -l "field list"
csvde -f export.csv -d "DC=uk,DC=kam,DC=com" -r "(ldap-filter-criteria)" -l "field list"
dsquery user DC=uk,DC=kam,DC=com
dsquery user DC=uk,DC=kam,DC=com|dsget user -samid
see 'csvde /?', 'ldifde /?', 'dsquery user /?', 'dsget user /?' for help of the commands
csvde -f export.csv -d "DC=uk,DC=kam,DC=com" -r "(ldap-filter-criteria)" -l "field list"
csvde -f export.csv -d "DC=uk,DC=kam,DC=com" -r "(ldap-filter-criteria)" -l "field list"
dsquery user DC=uk,DC=kam,DC=com
dsquery user DC=uk,DC=kam,DC=com|dsget user -samid
see 'csvde /?', 'ldifde /?', 'dsquery user /?', 'dsget user /?' for help of the commands
ASKER
thanks...and what sort of user permissions would the account that pulls this information need?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
...and if we need info for the entire forest, do we need to query a GC, or will any DC do?
ASKER