Import Bulk Active Directory user Accounts using LDF and LDIFDE
To import an account to an active directory using an ldf file. first create a file using any text editor application. save the file as an ldf file. The basic contents when creating user accounts are as follows.
dn:[ distinguishedName]
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
sn:[surname]
givenName:[Subscribers Name]
initials:[Middle Initial]
displayName: [Display Name]
sAMAccountName: [userlogin]
userPrincipalName: [userlogin]@domain.com
dn:[ distinguishedName]
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
sn:[surname]
givenName:[Subscribers Name]
initials:[Middle Initial]
displayName: [Display Name]
sAMAccountName: [userlogin]
userPrincipalName: [userlogin]@domain.com
in command prompt type in:
LDIFDE -i -f [filename.ldf] -s [domain]
The sample ldf file will create 2 accounts in users organizational unit. Your account must have an administrative rights to execute this process.
Source: http://support.microsoft.com/kb/237677
Change password using LDF and LDIFDE
dn:[ distinguishedName]
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
sn:[surname]
givenName:[Subscribers Name]
initials:[Middle Initial]
displayName: [Display Name]
sAMAccountName: [userlogin]
userPrincipalName: [userlogin]@domain.com
dn:[ distinguishedName]
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
sn:[surname]
givenName:[Subscribers Name]
initials:[Middle Initial]
displayName: [Display Name]
sAMAccountName: [userlogin]
userPrincipalName: [userlogin]@domain.com
in command prompt type in:
LDIFDE -i -f [filename.ldf] -s [domain]
The sample ldf file will create 2 accounts in users organizational unit. Your account must have an administrative rights to execute this process.
Source: http://support.microsoft.com/kb/237677
Change password using LDF and LDIFDE
Comments