Export / Import Exchange 2003 LegacyExchangeDN, msExchHomeServerName
Hi, I am busy to change the LegacyExchangeDN, msExchHomeServerName from with a script. but doesn't work. I am using the follwing command: csvde -f c:\users.csv -l "LegacyExchangeDN,msExchHomeServerName" -d "OU=UserTest,DC=Test,DC=com" I see the details with old LegacyExchangeDN, msExchHomeServerName I modify the *.csv file with the correct information but when I want to import the file doesn't work. I open the csv file with wordpad and see this information. Example: "CN=User1,OU=UserTest,DC=Test,DC=com",/o=Exch/ou=Exchange/cn=Recipients/cn=User1,/o=Exch/ou=Exchange/cn=Configuration/cn=Servers/cn=WINEXCH I changed the settings like : Example: "CN=User1,OU=UserTest,DC=Test,DC=com",/o=Exch2003/ou=Exchange/cn=Recipients/cn=User1,/o=Exch2003/ou=Exchange/cn=Configuration/cn=Servers/cn=WINEXCH I saved the file and now I want to import. with the following command: CSVDE -i -f users.csv and I get this message: Currently connect to (null) Log in as current user using SSPI Currently importing from the file directory users.csv The objectClass attribute is not defined 0 entries were changed. There was an error in the program occurred There are no log files. Specify the path for the log files using the-j switch on when you log file to create. What do I wrong or how do I can modify the user settings to do that. Or what is the best to do that I have only change the settings for specify OU with users. The others on other OU is correct. Sorry guys I am not a good vbs or powershell scripter Does somebody now . Regards, Hakan91 Good luck everyone.
March 23rd, 2012 4:43pm

This is the output file: DN,legacyExchangeDN,msExchHomeServerName "OU=UserTest,DC=Test,DC=com",, "CN=User1,OU=UserTest,DC=Test,DC=com",/o=Exch/ou=Exchange/cn=Recipients/cn=User1,/o=Exch/ou=Exchange/cn=Configuration/cn=Servers/cn=WINEXCH I modify only with wordpad the /o=Exch to Exch2003 and save the file. Thats all what I did Kind regards, Hakan91 Good luck everyone.
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 5:00pm

Does anybody knows what kind a script so that I can use after the modify the settings import again. Kind regards, Hakan91Good luck everyone.
March 23rd, 2012 9:18pm

Any body know what is going on to the import..Good luck everyone.
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2012 5:28pm

On Fri, 23 Mar 2012 20:43:29 +0000, Hakan91 wrote: >Hi, > >I am busy to change the LegacyExchangeDN, msExchHomeServerName from with a script. but doesn't work. >I am using the follwing command: >csvde -f c:\users.csv -l "LegacyExchangeDN,msExchHomeServerName" -d "OU=UserTest,DC=Test,DC=com" > >I see the details with old LegacyExchangeDN, msExchHomeServerName I modify the *.csv file with the correct information but when I want to import the file doesn't work. I open the csv file with wordpad and see this information. >Example: >"CN=User1,OU=UserTest,DC=Test,DC=com",/o=Exch/ou=Exchange/cn=Recipients/cn=User1,/o=Exch/ou=Exchange/cn=Configuration/cn=Servers/cn=WINEXCH > >I changed the settings like : >Example: >"CN=User1,OU=UserTest,DC=Test,DC=com",/o=Exch2003/ou=Exchange/cn=Recipients/cn=User1,/o=Exch2003/ou=Exchange/cn=Configuration/cn=Servers/cn=WINEXCH > >I saved the file and now I want to import. with the following command: >CSVDE -i -f users.csv and I get this message: >Currently connect to (null) >Log in as current user using SSPI >Currently importing from the file directory users.csv >The objectClass attribute is not defined >0 entries were changed. >There was an error in the program occurred >There are no log files. Specify the path for the >log files using the-j switch on when you >log file to create. > >What do I wrong or how do I can modify the user settings to do that. Or what is the best to do that I have only change the settings for specify OU with users. The others on other OU is correct. Sorry guys I am not a good vbs or powershell scripter >Does somebody now . Use LDIFDE, not CSVDE to accomplish this sort of work. Or use ADModify. Or use VBS and ADSI, or powershell and .Net (and the ADSI accelerator), to script the changes. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
March 24th, 2012 5:31pm

HI Rich, Do you have a example for me, so that I can export and Import that settings. Kind regards, Hakan91Good luck everyone.
Free Windows Admin Tool Kit Click here and download it now
March 25th, 2012 6:32am

On Sun, 25 Mar 2012 10:32:14 +0000, Hakan91 wrote: > > >HI Rich, > >Do you have a example for me, so that I can export and Import that settings. RFC 2849. dn: <distinguishedname> changetype: modify replace: legacyExchangeDN legacyExchangeDN: <LDN-value> - dn: <distinguishedname> changetype: modify replace: legacyExchangeDN legacyExchangeDN: <LDN-value> - dn: <distinguishedname> changetype: modify replace: legacyExchangeDN legacyExchangeDN: <LDN-value> - etc. --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
March 25th, 2012 3:34pm

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

Other recent topics Other recent topics