Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

OS - Windows Server 2008 R2
Localhost: DC as well as running an AD LDS instance

Here are the command(s) I used:

ldifde -i -u -f differences.ldf -s localhost:50004 -b myUserAccount MyDomain MyPassword -j . -c "cn=Configuration, dc=X" #configurationNamingContext

ldifde -i -u -f differences.ldf -s localhost:50004  -j C:\Windows\ADAM\logs -c "cn=Configuration, dc=x" #configurationNamingContext

All of them failing and saying that '-i' is invalid parameter. But the documentation clearly says "-i" simply turns on import mode.

(please note my local host is DC as well as running a AD LDS instance at 50004 port. And also note that i can connect to the service instance with ASDI EDIT or ldp etc. admin utils)

Not sure what I am missing - I am just following this Step-by-Step guide, trying to understand how to sync AD DS users to my account. Not sure why it's too complex :)

Also, are there any PowerShell Cmdlet(s) to do the same - since I am a .NET developer, I can probably get used to the tools if it's cmdlets, I guess.

Any thoughts or help is appreciated :)


Please note the following Cmd is working fine:

C:\Windows\ADAM>ldifde -i -s localhost:50004 -c CN=Configuration,DC=X #Configura
tionNamingContext -f MS-AdamSchemaW2k3.ldf
Connecting to "localhost:50004"
Logging in as current user using SSPI
Importing directory from file "MS-AdamSchemaW2k3.ldf"
Loading entries.................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.................................................................
1009 entries modified successfully.

The command has completed successfully

C:\Windows\ADAM>

Best Regards!

share|improve this question
    
Are you running ldifde from PowerShell or a classic cmd.exe prompt? –  Mathias R. Jessen Jan 10 at 0:35
    
@Jessen, Hi - running the Cmd from class 'cmd' shell as administrator. –  Dreamer Jan 10 at 0:36
1  
It clearly wouldn't work, but that error makes no sense at all. Please include the error output in its entirety or a screenshot –  Mathias R. Jessen Jan 10 at 0:41
    
why not, am running the Cmd from 'C:\Windows\ADAM' in administrator cmdprompt. please note that following Cmd is working ok - ldifde -i -s localhost:50004 -c CN=Configuration,DC=X #ConfigurationNamingContext -f MS-AdamSchema.ldf (reference: blogs.msdn.com/b/jeff/archive/2007/04/01/… ) –  Dreamer Jan 10 at 0:45
    
Please see the update - i have added the Cmd which is working, but not too sure whats happening, and how it helps me to sync (get AD DS users) to my AD LDS. its un-necessarily too complex. at least to me :) –  Dreamer Jan 10 at 0:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.