1 min read
PowerShellSharePoint 2013

Error: Specified value is not supported for the domainname parameter.

I came across the below error when trying to create a new web application via PowerShell against a 2013 farm.

“Specified value is not supported for the domainname parameter error when creating web apps”

This appears to have been caused by the machine loosing connectivity to the domain so even though my server was domain joined it was not connected.  In my case this was due to the DNS service failing, re-starting the DNS service allowed me to create the web app.

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Tags

Domainerror
Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

You might also like

SharePoint 2013: PowerShell to update a term sets Submission Policy

The following PowerShell can be used to update a terms sets submission policy to open or closed. #Connect to Central Admin $Session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession(“Central Admin URL”) #Connect to Managed Metadata Service $Store = $Session.TermStores[“Managed Metadata Service Name”] #Get the group $Group = $Store.Groups[“Group Name”]; #Get the Term Set $TermSet = $Group.TermSets[“Term Set Name”]; #Update… Continue Reading →

Deleting Site Collections in Office 365

By default deleting a site collection in Office 365 just moves the site collection to the recycle bin for 30 days, but there is not an option in the admin screen to remove it from the recycle bin. This is fine, unless you want to use the same url for a new site collection. In… Continue Reading →

SharePoint 2013: Creating a Publishing Page and assigning a page layout using PowerShell

The following PowerShell can be used to create a publishing page and assign a page layout. #Get SPWeb $spWeb = Get-SPWeb(“Site URL”); #Get Publishing Web $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spWeb) #Finds the appropriate page layout $pl = $pubWeb.GetAvailablePageLayouts() | Where { $_.Name -eq “Page Layout Name”} $pages = $pubWeb.GetPublishingPages(); #Create the page; $page = $pages.Add(“Page Name”, $pl)… Continue Reading →

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.