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

Audience

Everyone

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…

image_thumb[15]
Figure: You need a domain to create a farm

The implication is that only Domains are supported.

Applies To

  • SharePoint 2013

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.

image
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

    image_thumb[16]
    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]
    Figure: Just don’t disconnect from this server farm

This works just fine with SQL Server 2012.

Did this help you?

Create a conversation around this article

Share on Facebook
Share on Twitter
Share on Linkdin

Read more

Martin Hinshelwood
In organizational development and team dynamics, Agile (as the Agile Manifesto delineates) and Scrum (as the Scrum Guide outlines) guide teams not by solving their problems but by illuminating the issues that demand attention. These frameworks aim to identify and spotlight the challenges within a team or organization’s processes, effectively …
Martin Hinshelwood
This week, I participated in a Scrum.org Webinar hosted by Sabrina Love (Scrum.org Product Owner) as well as my colleagues, Joanna Płaskonka, Ph.D. and Alex Ballarin to discuss the state of learning and how immersive learning is the future of training. You can watch the video below to hear what …
Martin Hinshelwood
For a long time now I have been searching for that perfect domain that epitomised the vision, the why, of what I am trying to achieve with my customers and the industry at large. Now I have found it in http://nkdagility.com
Martin Hinshelwood
At the MVP Summit I was appalled by the number of people who asked questions about new features for supporting hierarchical tasks! I shared a disgusted look with Peter Provost and we had a quick (and I mean really quick) conversation that resulted in this post. it really comes down …