DEV Community

Miguel Isidoro
Miguel Isidoro

Posted on • Originally published at blogit.create.pt on

Set a SharePoint Site as HomeSite using PowerShell

This post explains how to set a SharePoint to be your home site in a Microsoft 365 tenant using PowerShell.

Introduction

SharePoint Home Site is a feature available in SharePoint that allows you to designate a given site as a Home Site for the whole SharePoint Intranet. By doing so, the site is designated to be the main site of the Microsoft 365 tenant.

The Code

To transform an existing SharePoint site into a SharePoint home site, run the following PowerShell script:


Connect-SPOService -Url https://demo-admin.sharepoint.com
Set-SPOHomeSite -HomeSiteUrl https://demo.sharepoint.com/sites/home

Enter fullscreen mode Exit fullscreen mode

NOTE: You can only have one SharePoint Home Site.

Happy SharePointing!

The post Set a SharePoint Site as HomeSite using PowerShell appeared first on Blog IT.

Top comments (0)