DEV Community

Miguel Isidoro
Miguel Isidoro

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

How to Disable Social Bar (Like, Comment, Views, Save for later) in a SharePoint Online Modern Pages

This post will explain how to disable the Social Bar in SharePoint Online Modern Pages.

Introduction

The Social Bar is a feature in SharePoint Online that allows users like, comment, and see the number of views in SharePoint modern pages.

Disable Social Bar in a SharePoint Site

To disable the social bar in a single SharePoint site, run the PowerShell script below in PowerShell window using PnP PowerShell. Make sure you set the parameters accordingly.


$AdminCenterURL="https://dev-admin.sharepoint.com"
$SiteURL = "https://dev.sharepoint.com/sites/DevSite"

#Connect to SharePoint Online
Connect-PnPOnline -Url $AdminCenterURL -UseWebLogin

#Disable Social Bar on Site Pages
Set-PnPSite -Identity $SiteURL -SocialBarOnSitePagesDisabled $true

Enter fullscreen mode Exit fullscreen mode

Disable Social Bar in all SharePoint Sites

To disable the social bar in all SharePoint sites in the tenant, run the PowerShell script below in PowerShell window using PnP PowerShell. Make sure you set the parameters accordingly.


$AdminCenterURL="https://dev-admin.sharepoint.com"

#Connect to SharePoint Online
Connect-PnPOnline -Url $AdminCenterURL -UseWebLogin

#Disable Social Bar on Site Pages
Set-PnPTenant -SocialBarOnSitePagesDisabled $True



Enter fullscreen mode Exit fullscreen mode

SharePoint site before disabling Social Bar:

SharePoint site after disabling Social Bar:

Related Articles

To learn why your business should migrate to SharePoint Online and Office 365, click here and here.

If you want to learn how to develop SPFx solutions, click here.

If you want to learn how you can rename a modern SharePoint site, click here.

If you want to learn how to save time time scheduling your meetings, click here.

If you want to learn how to enable Microsoft Teams Attendance List Download, click here.

If you want to learn how to create a dynamic org-wide team in Microsoft Teams with all active employees, click here.

If you want to modernize your SharePoint classic root site to a modern SharePoint site, click here.

If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click here and here.

If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click here.

If you prefer to use the traditional method to update your farm and want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated, click here.

If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click here and here.

If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click here and here.

If you want to learn how to upgrade a SharePoint 2010 farm to SharePoint 2016, click here and here.

If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these learning resources.

If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read this article.

If you want to know all about the latest SharePoint and Office 365 announcements from Ignite and some more recent announcements, including Microsoft Search, What’s New to Build a Modern Intranet with SharePoint in Office 365, Deeper Integration between Microsoft Teams and SharePoint and the latest news on SharePoint development, click here.

If your organization is still not ready to go all in to SharePoint Online and Office 365, a hybrid scenario may be the best choice. SharePoint 2019 RTM was recently announced and if you to learn all about SharePoint 2019 and all its features, click here.

Happy SharePointing!

The post How to Disable Social Bar (Like, Comment, Views, Save for later) in a SharePoint Online Modern Pages appeared first on Blog IT.

Top comments (2)

Collapse
 
jaloplo profile image
Jaime López

I don't know this could be done. Great to share this!!!

One thing I didn't got from the scripts. In the second one, it is supposed you disable the social bar from all SharePoint sites, however, the script is the same as the previous one. Let me know if this still works and disabled the social media bar for all sites or there should be something additional to accomplish.

Collapse
 
mlisidoro profile image
Miguel Isidoro

Thanks for the reply. There was a bug in the post :). I have updated the script for all SharePoint sites, now is correct.

Best regards,
Miguel