none
Export / Import Exchange 2003 LegacyExchangeDN, msExchHomeServerName RRS feed

  • Question

  • 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.


    • Edited by Hakan91 Friday, March 23, 2012 8:43 PM
    Friday, March 23, 2012 8:43 PM

Answers

  • 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
    Saturday, March 24, 2012 9:31 PM

All replies

  • 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.

    Friday, March 23, 2012 9:00 PM
  • Does anybody knows what kind a script so that I can use after the modify the settings import again.

    Kind regards,

    Hakan91


    Good luck everyone.

    Saturday, March 24, 2012 1:18 AM
  • Any body know what is going on to the import..

    Good luck everyone.

    Saturday, March 24, 2012 9:28 PM
  • 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
    Saturday, March 24, 2012 9:31 PM
  • HI Rich,

    Do you have a example for me, so that I can export and Import that settings.

    Kind regards,

    Hakan91


    Good luck everyone.

    Sunday, March 25, 2012 10:32 AM
  • 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
    Sunday, March 25, 2012 7:34 PM