Logon failure: unknown username or bad password when trying to join hyper-v-server to a domain
When attempting to join a domain using sconfig an error box is shown saying:
Logon failure: unknown username or password.
- Check that the domain name you are entering is the fully qualified domain name.
- Check that you are entering a valid username and the correct password.
- Instead of using sconfig, use powershell to add the
hyper-v-server to the domain:
The powershell cmdlet is
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS C:\> add-computer mydomain.local
It will then pop up a login box asking for the username and password with an account with rights to add to the domain. Done.
Whilst you can specify the account to use on the command line if you wish (add
-cred account-name) you cannot specify the password on the command line - it will always pop up a login box.
I never did resolve why this failed for me, but fortunately the powershell solution worked a treat.
About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.