Wednesday, August 22, 2012

Modify Zone of an alternate access mapping SharePoint 2010

In this article we will discuss how to change the zone of an alternate access mapping in sharepoint 2010 using Powershell. You can also check my last article on how to retrieve current zone in SharePoint 2010 using sharepoint 2010 object model.

There are 5 different types of zones available in sharepoint 2010 and they are:

Default
Intranet
Internet
Extranet
Custom

But we can modify the zone by using powershell command. Below is the command:

Set-SPAlternateURL –Identity "http://UR" –Zone Intranet

Similarly by using Get-SPAlternateURL cmdlet we can retrieve the zone with alternate URL. Below is the command.

Get-SPAlternateURL

if you want to retrive the particular URL then we can use like below:

Get-SPAlternateURL -Identity "http://URL"

see figure below:

You can also check one article on Deploy infopath form using PowerShell or STSADM command.

No comments:

Post a Comment