none
Addusers.exe for 64-bit?

    Question

  • Hello all, 

    I'm fairly new to the Server Admin world, so please bear with me if I sound foolish.

    For the past year or so, we've been adding users in AD via a script that uses the addusers.exe tool. We recently migrated our AD from Server 2003r2 x86 to Server 2008r2 x64, and I'm trying to get that script to work again. Any time I try running the script, the log comes back with:

    "-Error creating user account "(username)" (Error: 5)"

    I've read other posts on this forum that suggests running the script on the PDC, which I am. The only thing I can come with is that this is a 32-bit tool as suggested at: http://support.microsoft.com/kb/199878.

    I could be way off, but my research doesn't come back with anything else for that error.

     

    Any guidance would be greatly appreciated. Thanks all.

    Friday, January 28, 2011 5:50 PM

Answers

  • Isn't error 5 and "access denied" error?
    Friday, January 28, 2011 8:58 PM
  •  I'm trying to get that script to work again. 

    I recommand to you to refer to this MSDN article named "Create User Accounts from Information in an Excel Spreadsheet.

    Also, I recommand to you to have a look to this link named "How to create a User Account with VBScript".

    Try to use them to create your script and check if this can be used without problems.

    For the error, are you sure that it is "-Error creating user account "(username)" (Error: 5)" and not "access denied" error 5 like mentioned JP?

     


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Microsoft Student Partner
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration

    Friday, January 28, 2011 9:10 PM
  • Hello,

    make sure to use an elevated command prompt(RUNAS) when running it.

    Also i read the Error 5 means wrong argument used.


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Saturday, January 29, 2011 12:21 AM

All replies

  • Isn't error 5 and "access denied" error?
    Friday, January 28, 2011 8:58 PM
  •  I'm trying to get that script to work again. 

    I recommand to you to refer to this MSDN article named "Create User Accounts from Information in an Excel Spreadsheet.

    Also, I recommand to you to have a look to this link named "How to create a User Account with VBScript".

    Try to use them to create your script and check if this can be used without problems.

    For the error, are you sure that it is "-Error creating user account "(username)" (Error: 5)" and not "access denied" error 5 like mentioned JP?

     


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Microsoft Student Partner
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration

    Friday, January 28, 2011 9:10 PM
  • Hello,

    make sure to use an elevated command prompt(RUNAS) when running it.

    Also i read the Error 5 means wrong argument used.


    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
    Saturday, January 29, 2011 12:21 AM
  • Thank you for all your responses, Mr. X's link helped greatly.

    Monday, January 31, 2011 3:49 PM