Configure

Disable SharePoint List Commenting at tenant level

This sample script shows how to disable commenting feature in SharePoint online lists 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

Outupt Screenshot

powershell

# 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

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.

Tool documentation & references

Keep exploring