Saturday 24 July 2021

SharePoint Home site.

 In this blog, we will be discussing the SharePoint Home site.


What is SharePoint Home site?

SharePoint Home site is a Communication site. It is the main landing/home site for your modern SharePoint intranet portal. It brings together news, documents, events, content, conversations, feeds, videos, and other resources.


How to set the site as Home site?

1. Create a new site or use an existing Communication site.

2. Open SharePoint Online Management Shell in administrative mode and connect to SharePoint as a global admin or SharePoint admin.

Here I have installed Microsoft.Online.SharePoint.PowerShell modules.

SharePoint Online Management Shell: Getting Started

3. Run the below command:

Set-SPOHomeSite -HomeSiteUrl https://developer5.sharepoint.com/sites/TheLanding

It will take some time to reflect on the change. In my case, it took 20 minutes. Run the below command to check which site is currently set as the Home site.

Get-SPOHomeSite

Home site can also be set easily through the SharePoint Online admin center.


Go to SharePoint Online admin center at https://YourDomain-admin.sharepoint.com

1. Click on the Settings option.

2. Click on the "Home site" link.

3. Enter the URL of the SharePoint Online communication site that you would like to set as a home site.

4. Press the Save button.


~~~ Things to know ~~~

1. Only PowerShell is available to set a site as the Home site. Currently, it cannot be done through UI as of now.

Update: Home site can be set easily through the SharePoint Online admin center.

2. Only one site can be set as the Home site for a Tenant.

Update: In the latest release, users will be able to set up multiple home sites by using multiple Viva Connections experiences. The feature is currently in private preview and is expected to start rolling out broadly by the end of July 2023.

3. Home site (Communication site) search scope will now be tenant-wide. The default search scope is at the site level only.



4. Home site can be a Hub site also.

5. News coming from the Home site will have a distinguishing highlighted Home site name banner.



The same is available in the SharePoint mobile app.

6. Enables quick access (Home icon) to the Home site from the SharePoint mobile app.


7. The Global Navigation option will be enabled for the Home site now.


Remove site as Home site

Run the below command to remove the site as your Home site.

Remove-SPOHomeSite
Update: Home site can be removed easily through the SharePoint admin center.

🚀 "Happy Coding" 🚀

Sunday 4 July 2021

SharePoint Online Management Shell: Getting Started

In this blog, we will be discussing SharePoint Online Management Shell. The introduction, installation, and some example commands.


Introduction

SharePoint Online Management Shell is a tool that contains a Windows PowerShell module that allows administrators to manage their SharePoint Online subscription in Office 365 using PowerShell.

SharePoint administrators can manage Sites, Users, Tenants and etc. Some of the tasks can be performed in the Microsoft 365 admin center, but not all operations are possible. Command-line operations in Windows PowerShell are composed of a series of commands. We can perform read, write, and execute command-line operations, and they are easier in PowerShell.


Installation

SharePoint Online Management Shell is not present out-of-the-box on the Windows operating system. You need to install the SharePoint Online Management Shell and connect to SharePoint Online.

There are two options:

1. Download and install the SharePoint Online Management Shell .msi package.


2. Install the module from the PowerShell Gallery


Open Windows PowerShell (or CMD) in administrative mode and install the SharePoint Online Management Shell by running the below command:

Install-Module -Name Microsoft.Online.SharePoint.PowerShell

Once the module is installed, execute the below command in administrative mode to check its details:
Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version

To update the SharePoint Online Management Shell, run the below command in administrative mode:
Update-Module -Name Microsoft.Online.SharePoint.PowerShell

To uninstall the SharePoint Online Management Shell, run the below command in administrative mode:
Uninstall-Module -Name Microsoft.Online.SharePoint.PowerShell


Run the below command to connect with the SharePoint Online admin center. Enter the SharePoint admin account credentials in the request dialogue box.

Connect-SPOService -Url https://developer5-admin.sharepoint.com




To disconnect and close the connection, run the below command:

Disconnect-SPOService -Url https://developer5-admin.sharepoint.com


🚀 "Happy Coding" 🚀