How to export the members from the "Security Group" (User Group and Mailbox Group) by using PowerShell ?
Hi,It Pro.s, Plstell me what's thesolutions? Thanks! How to export the members from the "Security Group" (User Group and Mailbox Group) by using PowerShell I need to create the same groups and import the members to the new domain too.
September 4th, 2008 7:07am

Hello, I didnt try with PowerShell but have a VBScript to do so VBScript: Copy Group Membership From One Group toAnother
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2008 8:32am

Thanks, Amit, And i'm also worrying about the AD Groups' members. I tried these ways: 1. "net group xxx > xxx.txt" 2. "ldifde -f xxx.ldf -d "ou=xxx..." -p subtree -r "(objectclass=group)" -l "dn,member,info,description,mail,grouptypy,instancetype,objectclass,name,smaaccountname"" and i fund that it is too hard toconvert the exported files to an fixed formated which can be imported to the AD...
September 4th, 2008 9:13am

What is your goal by exporting & importing users & groups? If you are trying to migrateactive directory objects from one domain to another then you can use ADMT tool. Active Directory Migration Tool v3.0 ADMT v3 Migration Guide How to use the Exchange Migration Wizard to migrate mailboxes from an Exchange organization
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2008 12:46pm

Hi, Regarding LDIFDE command, did you refer to the article as the below link: http://support.microsoft.com/kb/q237677 Thanks Allen
September 5th, 2008 9:07am

Yes, We have a new domain now, and i need to migrate the user groups from old domain to the new one. But , you know, the users' name in thenew domainare different from the old ones. I already export them via powershell,and itlooks like theldf file: ------------------------------------------------------------------------------------------------ param([string] $GroupName,[string] $GroupPath)echo "GroupName is "$GroupNameecho "GroupPath is "$GroupPathecho "---------------------------------------------" >> C:\Test\Log.txtecho $GroupName >> C:\Test\Log.txt$Group = [ADSI]("LDAP://CN="+$GroupName+","+$GroupPath)$Group.member >> C:\Test\Log.txtecho "---------------------------------------------" >> C:\Test\Log.txtecho "" >> C:\Test\Log.txt ------------------------------------------------------------------------------------------------ Now,I'm puzzled with these : 1.how to create the groups in a batched way? 2.how toadd users to a existed group,for ialready have the new domain's username and groupname? Powershellwith adsi or another tools? And, thanks all of you for reply.
Free Windows Admin Tool Kit Click here and download it now
September 5th, 2008 9:58am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics