Disable SharePoint List Commenting at tenant level
Summary
This sample script shows how to disable commenting feature in SharePoint online lists at tenant level.
Scenario inspired from this blog post: How to Enable/Disable the commenting in SharePoint Online/Microsoft Lists
# SharePoint online admin site url
$siteUrl = "https://<tenant>-admin.sharepoint.com/"
# Connect to SharePoint Online site
Connect-SPOService -Url $siteUrl
# To disable comments on list items
Set-SPOTenant -CommentsOnListItemsDisabled $true
# To enable comments on list items
Set-SPOTenant -CommentsOnListItemsDisabled $false
Check out the SPO Management Shell to learn more at: Introduction SharePoint Online Management Shell | Microsoft Docs
Contributors
Author(s) |
---|
Ganesh Sanap |
Disclaimer
THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.