Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I run a Windows 2008 server, and when I do net user XXX strong_password /ad I got a command succeed message, but unable to log on with that user and password, it kept telling me password or username is wrong.

But if I do the same through Control Panel->User And Accounts, the user could log on.

So what's the difference between that two methods? Or what extra steps need to take to make login possible?

share|improve this question
    
It´s probably just a typo, so... /ad should be /add, and if you want to add a domain user, you should use > net user XXX strong_password /add /domain I recommend reading this link. –  Jannis Alexakis Feb 20 '13 at 19:07
    
@JannisAlexakis it's not a typo, /ad is an alias –  warl0ck Feb 21 '13 at 0:31

2 Answers 2

I believe UAC is blocking this. Try running the command prompt from administrator by right clicking on Command Prompt -> Run As Administrator. I just tried the command on my PC and it worked fine.

share|improve this answer

Your command should work fine - it's the recognised way of creating LOCAL users. When you attempt to logon, can you ensure you're trying to logon to the local account, and aren't specifying the domain?

Also, can you post the exact response you are getting when creating the user and when failing to logon?

One way to test the account is to use runas, e.g.:

runas /user:%COMPUTERNAME%\<ACCOUNT-NAME> cmd.exe
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.