One of the recent updated for Microsoft Lists / SharePoint List Online was the possibility to comment on each item of a list that allows you to interact with other users for that particular item. This is a great feature which will be helpful to many organization and will help users to extend their collaboration. However, it’s possible that some organization may want to disable or enable the option in a programmed scheduled.
At this time, either you enable this option to all your Microsoft 365 tenant or disable. Microsoft is planning for future release to control this option by list or site which will help to create a certain list with this option activated or deactivated.
First, you need to make sure you have the SharePoint Online Management Shell on the latest versions, check the following article to know how to do it –
Install/Update/Uninstall Cmdlets for SharePoint Online – SharePoint Tricks (sharepoint-tricks.com)
After this is installed you need to run the following command depending on what you’re trying to accomplish:
#To disable it run this command Connect-SPOService -Url https://contoso-admin.sharepoint.com/ Set-SPOTenant -CommentsOnListItemsDisabled $true #To enable this run this command Connect-SPOService -Url https://contoso-admin.sharepoint.com/ Set-SPOTenant -CommentsOnListItemsDisabled $true