|
-
Export group membership for user in Active Directory
Hi,
I'm trying to export which Active Directory groups a user is member of, using csvde.
Code:
csvde -f exportfilename.csv -d "CN=Espen Johansen,OU=INfocare,OU=External,OU=Users,OU=NO,DC=nmea,DC=abb,DC=com"
pause
This writes the information about "Espen Johansen" in the given unit and domain.
...except for the parts I'm interested in :/
I know you can export a list of members of a given group, but is it possible also to export a list of groups for a specific member?
-
I Love My Mommy
 Originally Posted by uppsju
Hi,
I'm trying to export which Active Directory groups a user is member of, using csvde.
Code:
csvde -f exportfilename.csv -d "CN=Espen Johansen,OU=INfocare,OU=External,OU=Users,OU=NO,DC=nmea,DC=abb,DC=com"
pause
This writes the information about "Espen Johansen" in the given unit and domain.
...except for the parts I'm interested in :/
I know you can export a list of members of a given group, but is it possible also to export a list of groups for a specific member?
The MemberOf collection holds all the group information for an individual user.
At work I've been using VBScript and the ADSI LDAP/WinNT bindings to bind to the object then can pull whatever information I need...
Set oWhatever = GetObject(LDAP://<distinguished name>)
Then you can loop through and get whatever you want and output it wherever...
Main PC: MSI P965 Neo-F | nVidia geForce 7300GT | Intel C2D E6400 | 250GB SATA II WD Hard Drive | SB Audigy 2 Platinum | 8x DVD Burner| 2GB Corsair XMS DDR II 675 | Logitech z680's | Cordless MX Duo | Samsung 191T | (2) 19inch Rosewill 913E
HTPC: Abit IC7 | ATI Radeon 9800 Pro | Intel P4c 2.8Ghz | 120GB WD SE | Chaintech AV-710| 4x DVD+RW | 1GB RAM | Onkyo 7.1 Speakers | TV Tuner | Rosewill Cordless KB and Mouse | 15 Inch LCD | Panasonic PT-L500U Projector | USB 2.0 Card Reader
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|