Re: Export AD information into a SQL Database
- From: Jerold Schulman <Jerry@xxxxxxxxxx>
- Date: Fri, 03 Feb 2006 09:27:54 -0500
On Fri, 3 Feb 2006 04:44:37 -0800, Gareth Saunders <GarethSaunders@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi there
We're looking to import user and computer information from AD into an SQL
Database. We currently have in excess of 900 user accounts and need to check
which users have which login scripts. Short of scrolling through 900+
accounts, we'd like to be able to import this information into an SQL
database. We've found some information which will import username etc, but
nothing on importing information like Login Scripts etc.
Many thanks in advance
Gareth Saunders
BOFH
See tip 5898 » Freeware ADFind.
in the 'Tips & Tricks' at http://www.jsifaq.com
See tip 7714 » What attribute names can I use with the user filtered dsquery command?
ADFIND -default -nodn -csv -csvdelim ; -nocsvheader -f "&(objectcategory=person)(objectClass=user)" distinguishedName sAMAccountName userPrincipalName displayName homeDirectory homeDrive scriptPath
and any other attribute you wish to export in a CSV format.
Here is just one of the many records exported from my test AD:
"CN=test,CN=Users,DC=JSIINC,DC=COM";"test";"test@xxxxxxxxxx";"First Last";"\\newserver\share\test";"H:";"logon.bat"
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.
- Prev by Date: Re: Autoenrollment error
- Next by Date: Re: test environment windows 2003
- Previous by thread: Re: I want to Query
- Next by thread: Re: exporting adds/updates and deletes.
- Index(es):
Relevant Pages
|