Importing Computer Objects - LDIFDE

S

Sam

ok, heres the issue I face and hope I can get an answer for this

In the process of rebuilding Active Directory and what I did was
export all the computer objects out of active directory using the
folling command:

ldifde -f exportcomputer.ldf -s meaa_dfs -r "(objectclass=computer)"
-l
"dn,changetype,codePage,countryCode,displayName,dNSHostName,localPolicyFlags,distinguishedName,objectCategory,objectClass,primaryGroupID,name,sAMAccountName,isCriticalSystemObject,sAMAccountType,servicePrincipalName,servicePrincipalName,userAccountControl"

Connecting to "meaa_dfs"
Logging in as current user using SSPI
Exporting directory to file exportcomputer.ldf
Searching for entries...
Writing out entries.............................................................

Example of one entry:

dn: CN=LARAHOOK,CN=LostAndFound,DC=alliance,DC=org,DC=au
changetype: add
codePage: 0
countryCode: 0
displayName: LARAHOOK$
dNSHostName: larahook.alliance.org.au
isCriticalSystemObject: FALSE
localPolicyFlags: 0
distinguishedName: CN=LARAHOOK,CN=LostAndFound,DC=alliance,DC=org,DC=au
objectCategory:
CN=Computer,CN=Schema,CN=Configuration,DC=alliance,DC=org,DC=au
objectClass: computer
primaryGroupID: 515
name: LARAHOOK
sAMAccountName: LARAHOOK$
sAMAccountType: 805306369
servicePrincipalName: HOST/LARAHOOK
servicePrincipalName: HOST/larahook.alliance.org.au
userAccountControl: 4096

now when I try and import it on a different domain (same name, just in
a lab) it gives me this error:

Command used:
ldifde -i -f exportcomputer.ldf -s member

Error msg:
Error occured during initialization
File operation failure


Now, is what Im doing possible? I have exported and imported
users/ou's fine but im stuck with computers.

Any help would be appreciated.

Thanks,
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top