Addusers.exe for 64-bit?
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.
January 28th, 2011 12:55pm

Isn't error 5 and "access denied" error?
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2011 3:59pm

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
January 28th, 2011 4:11pm

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.
Free Windows Admin Tool Kit Click here and download it now
January 28th, 2011 7:25pm

Thank you for all your responses, Mr. X's link helped greatly.
January 31st, 2011 10:54am

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

Other recent topics Other recent topics