Setting up publishing site default page in sharepoint 2010

In SharePoint 2010 publishing site you can choose the default page for that site. In the following example I will show you how you can change the default page of publishing site by using PowerShell.

$site = get-spsite "http:// site URL”

$pub = [Microsoft.SharePoint.Publishing.PublishingWeb] :: GetPublishingWeb($site.RootWeb)
$file = $pub.Web.GetFile("Pages/New_DefaultPage.aspx")
$pub.DefaultPage = $file
$pub.Update()

More Blogs

Contact us

To begin your digital transformation, get in touch.

We’re pleased to address any inquiries you might have and assist you in selecting the service that best suits your requirements.

Your benefits:
Speak To Us