I'm trying this tutorial Enable apps in AAM or host-header environments for SharePoint 2013 but when I run the commandlet

New-SPWebApplicationAppDomain -AppDomain app.com -WebApplication site.com -Zone Internet -Port 4321** 

in SharePoint 2013 Management Shell I get this error:

enter image description here

What might the problem be?

  • 1
    "The New-SPWebApplicationAppDoman cmdlet was first introduced in the March 2013 Public Update" - technet.microsoft.com/en-us/library/dn167722.aspx, what patch level are you on? Dec 15, 2016 at 14:06
  • I downloaded and installed SharePoint 2013 last month. I don't know my patch level. Dec 15, 2016 at 14:11
  • what you get when run this Get-SPWebApplicationAppDomain or get-Spfarm?
    – Waqas Sarwar MVP
    Dec 15, 2016 at 14:13

1 Answer 1


1) Add below code:

Add-PSSnapin Microsoft.Sharepoint.Powershell

2) If that doesnt work, open SharePoint Management shell in admin mode.

enter image description here

  • still can't work! Dec 15, 2016 at 14:12
  • check @RobertLindgren's comment. You need March 2013 PU update. Dec 15, 2016 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.