tech·nic·al·ly agile

Issue SharePoint 2013: The username is invalid. The account must be a valid domain account

Resolve the SharePoint 2013 username error with our step-by-step guide. Learn how to configure your farm using PowerShell for a smooth setup!

Published on
1 minute read
Image
https://nkdagility.com/resources/nckpcFbyvfv

When configuring SharePoint 2013 in “Complete” mode you get a “The username is invalid. The account mist be a valid domain account” when using a local account to configure the farm…

Issue SharePoint 2013: The username is invalid. The account must be a valid domain account  

Figure: You need a domain to create a farm

The implication is that only Domains are supported.

Applies To

Findings

Out of the box SharePoint only supports “Stand-alone” mode for non domain environments, but this forces you to use SQL Server 2008 R2 Express Edition which is most cases is unacceptable.

Issue SharePoint 2013: The username is invalid. The account must be a valid domain account  

Figure: “Stand-alone” used SQL Server 2008 R2 Express Edition

The UI is designed for the happy path and you need to drop to the command line to do anything else.

Solution

Use a PowerShell command to create the initial configuration of the farm with a local account:

  1. Start the SharePoint PowerShell

  2. Run “New-SPConfigurationDatabase” from the command line and follow the instructions Issue SharePoint 2013: The username is invalid. The account must be a valid domain account  

    Figure: New-SPConfigurationDatabase creates the farm for you This will create the farm and configure the necessary accounts.

  3. Rerun the Configurtion wizard After it finishes start the Config Wizard (interactive or not) and configure your server with all components

    [![image_thumb[17]](images/image_thumb17_thumb-4-4.png "image_thumb[17]")](http://blog.hinshelwood.com/files/2012/08/image_thumb17.png)
    

    Figure: Just don’t disconnect from this server farm

This works just fine with SQL Server 2012.

Did this help you?

Install and Configuration System Configuration Troubleshooting Practical Techniques and Tooling
Comments

Related blog posts

No related videos found.

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Lockheed Martin Logo
Boxit Document Solutions Logo
Teleplan Logo
Cognizant Microsoft Business Group (MBG) Logo
Akaditi Logo
Bistech Logo
Trayport Logo
YearUp.org Logo
ALS Life Sciences Logo
Slaughter and May Logo
Big Data for Humans Logo
Graham & Brown Logo
Flowmaster (a Mentor Graphics Company) Logo
SuperControl Logo
Sage Logo
Emerson Process Management Logo
Qualco Logo
Microsoft Logo
Washington Department of Transport Logo
Nottingham County Council Logo
Ghana Police Service Logo
Department of Work and Pensions (UK) Logo
Washington Department of Enterprise Services Logo
New Hampshire Supreme Court Logo
Boeing Logo

CR2

Freadom Logo
Sage Logo
Capita Secure Information Solutions Ltd Logo
ALS Life Sciences Logo