Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Active Directory help
  Last Thread   Next Thread
Share
Author
Thread    Post A Reply
DJ Mikey Mike
Your mum's face



Registered: Jan 2002
Location: I'm at your mums'
Active Directory help

Does anyone know how I can export all the security groups plus its members to a text file or csv file?

Old Post Apr-28-2010 08:05 
Click Here to See the Profile for DJ Mikey Mike Click here to Send DJ Mikey Mike a Private Message Add DJ Mikey Mike to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Joss Weatherby
Banned



Registered: May 2008
Location: The Pacific Northwest, of course

Start by slitting your wrists, now wait till you are dead.

Are you in hell yet? Ok now lets get started...


Actually Im full of shit, I never worked on AD that far, but a friend at my old work did and it sounded like a bitch to get policies and groups out in any sort of constructive manner.

Old Post Apr-28-2010 08:17 
Click Here to See the Profile for Joss Weatherby Click here to Send Joss Weatherby a Private Message Visit Joss Weatherby's homepage! Add Joss Weatherby to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Rinster
EDM Addict



Registered: Jan 2006
Location:

Hm interesting question actually.. i work with AD all day.. ill have a look into it.. and post it as soon as i find out.


___________________
www.soundcloud.com/rinster

Old Post Apr-28-2010 09:13 
Click Here to See the Profile for Rinster Click here to Send Rinster a Private Message Visit Rinster's homepage! Add Rinster to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DJ Mikey Mike
Your mum's face



Registered: Jan 2002
Location: I'm at your mums'

The most common method appears to be using vb scripts. However, I know nowhere near enough about scripts to tailor people's code to my own requirements. I can't believe there isn't a more user friendly way to do it.

Last edited by DJ Mikey Mike on Apr-28-2010 at 12:09

Old Post Apr-28-2010 11:27 
Click Here to See the Profile for DJ Mikey Mike Click here to Send DJ Mikey Mike a Private Message Add DJ Mikey Mike to your buddy list Report this Post Reply w/Quote Edit/Delete Message
DJ Mikey Mike
Your mum's face



Registered: Jan 2002
Location: I'm at your mums'

Going back to this again, I found the following script, but I don't know anything about VB scripting. Can anyone tell me what bit of the code I need to replace with my own company information? And where I need to run it from?

code:
'Script begins here Dim objGroup, objUser, objFSO, objFile, strDomain, strGroup, Domain, Group 'Change DomainName to the name of the domain the group is in strDomain = "Domain" 'Change GroupName to the name of the group whose members you want to export strGroup = "Group" Set objFSO = CreateObject("Scripting.FileSystemObject") 'On the next line change the name and path of the file that export data will be written to. Set objFile = objFSO.CreateTextFile("C:\stefan\final" & strGroup & " - Members.txt") Set objGroup = GetObject("WinNT://" & strDomain & "/" & strGroup & ",group") For Each objUser In objGroup.Members objFile.WriteLine objUser.Name & " - " & objUser.Class Next objFile.Close Set objFile = Nothing Set objFSO = Nothing Set objUser = Nothing Set objGroup = Nothing Wscript.Echo "Done" Wscript.Echo "Please check your destination folder for the output file"

Old Post May-18-2010 08:25 
Click Here to See the Profile for DJ Mikey Mike Click here to Send DJ Mikey Mike a Private Message Add DJ Mikey Mike to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Active Directory help
Post New Thread    Post A Reply

 
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackI.D my sample [2004] [2]

Click here to listen to the sample!Pause playbackEpsilon 9 - "Lifeformation" (Infernal Machine Remix) [2004]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 17:15.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!