Set UPN and change Password from Spreadsheet

Discussion in 'Scripting' started by Sean N, Sep 29, 2006.

  1. Sean N

    Sean N Guest


    I have recently joined a 8000 user migration from NT4 to 2003.

    I am looking for ways to achieve the following:

    Use an excel spreadsheet with all the User account information to change the
    following in AD..

    1. Change the UPN to firstname.surname
    2. Change the pre-windows 2000 name to firstname.surname
    3. Change the displayname
    4. Set the password to be the same for all users

    I have tried using dsmod, by creating a batch file..

    dsmod user [UserDN] -upn [UPN] -display [DisplayName] -pwd [password]

    It works except that the pre-windows 2000 name is not changed, so it still
    requires manual process to change.

    It would great if someone already has a script that can do this.

    Sean N, Sep 29, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.