Home > varie > AD scripting

AD scripting

febbraio 28, 2011

Un paio di script utili per effettuare degli export da Active Directory 2007

Note:
Active Directory Server Name: ANDROMEDA.org

Export Gruppi:

ldifde.exe -m -f c:\temp\groupexportANDROMEDA.ldf -s ANDROMEDA.org -d "DC=ANDROMEDA,DC=ORG" -p subtree -r "(objectClass=group)" Export OrganizationUnit:

ldifde.exe -m -f c:\temp\groupexportOU.ldf -s ANDROMEDA.org -d "DC=ANDROMEDA,DC=ORG" -p subtree -r "(objectClass=organizationalUnit)" -l "cn,objectclass,ou"

Export utenze:

ldifde.exe -m -f c:\temp\USERexportANDR.ldf -s ANDROMEDA.org -d "DC=ANDROMEDA,DC=ORG" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l "cn,givenName,objectclass,samAccountName"

more info about LDIFDE:
http://support.microsoft.com/kb/237677

Categorie:varie