Remove extended zones

This one-liner will remove the intranet zone, change intranet to internet, custom, extranet, according to what your needs require

 

 

 

 

IF the error message below happens on your next run of the above command to Remove extended zones,

get

Remove-SPWebApplication : An object of the type Microsoft.SharePoint.Administra

tion.SPIisWebsiteUnprovisioningJobDefinition named “Unprovisioning SecretZone” a

lready exists under the parent Microsoft.SharePoint.Administration.SPWebService

named “”.  Rename your object or delete the existing object.

At line:1 char:24

+ Remove-SPWebApplication <<<<  http://Servername:Port -Zone “intranet”

+ CategoryInfo          : InvalidData: (Microsoft.Share…PWebApplication:

SPCmdletRemoveSPWebApplication) [Remove-SPWebApplication], SPDuplicateObje

ctException

+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletRemoveSP

WebApplication

 

 

Follow these steps to resolve

 

Go to:

  1. Central Administration
  2. Monitoring
  3. Review job definitions
  4. Scroll to the bottom and click the “forward” arrow
  5. Look for “Unprovisioning Web Application (SharePoint Web Application Name)” (it will be a one-time schedule)
  6. Delete it

Leave a Reply