a·gen·tic a·gil·i·ty

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

TL;DR; Explains how to resolve the SharePoint 2013 error requiring a domain account by using PowerShell to configure a farm with a local account instead of a domain account.

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

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?

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

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.​

Workday Logo

Workday

Emerson Process Management Logo

Emerson Process Management

YearUp.org Logo

YearUp.org

Slaughter and May Logo

Slaughter and May

Higher Education Statistics Agency Logo

Higher Education Statistics Agency

Akaditi Logo

Akaditi

Slicedbread Logo

Slicedbread

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

New Signature Logo

New Signature

Freadom Logo

Freadom

MacDonald Humfrey (Automation) Ltd. Logo

MacDonald Humfrey (Automation) Ltd.

Jack Links Logo

Jack Links

ALS Life Sciences Logo

ALS Life Sciences

Kongsberg Maritime Logo

Kongsberg Maritime

SuperControl Logo

SuperControl

DFDS Logo

DFDS

Nottingham County Council Logo

Nottingham County Council

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Ghana Police Service Logo

Ghana Police Service

Royal Air Force Logo

Royal Air Force

Washington Department of Transport Logo

Washington Department of Transport

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Lockheed Martin Logo

Lockheed Martin

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

New Signature Logo

New Signature

Workday Logo

Workday

SuperControl Logo

SuperControl

Epic Games Logo

Epic Games