Monday, December 22, 2014

How to default home page redirect to "Site Contents" page In SharePoint?

Power Shell

$siteUrl = Get-SPSite http://mysite/

   $web = $siteUrl.OpenWeb("hr")
$folder = $web.RootFolder
$folder.WelcomePage = "_layouts/15/viewlsts.aspx"

$folder.update()
$web.Dispose()
$siteUrl.Dispose()


No comments:

Post a Comment