It is documented in this article:
Disables or enables commenting functionality on the files. PARAMVALUE: $true | $false
Maybe you need to wait some time (24h?) for it to take real effect.
If you disable it, some external services such as GitHub, FaceBook and so on will not be used with office 365 tenant,here is an article about authorize external services for your reference:
Could you please try the below code,
# replace these details (also consider using Get-Credential to enter password securely as script runs)..
$username = "SomeUser@SomeOrg.onmicrosoft.com"
$password = "SomePassword"
$url = "https://SomeSite.sharepoint.com"
$securePassword = ConvertTo-SecureString $Password -AsPlainText -Force
# the path here may need ...
You might also want to consider using a Site Design for this, especially if you want it to be repeatable easily - and to let site owners manage things themselves. You can use a Site Design at site provisioning time or at a later point to instantiate specific artifacts, like Content Types, lists/libraries, etc.
Probably your best option is using the PnP Provisioning Framework. This framework was initially started as a better approach to templating, intending to replace the classic web templates and site definitions, but has grown into much more.
Although there are numerous options that I won't cover here, a basic script using the Provisioning Framework in PnP-...
The best recommended approach is use the PnP Provisioning template.
Download the PnP Provisioning template using PnP
Filter the downloaded template (xml) because there is no way to generate only the specific list template, by default it will download all lists/libraries from the specific site.
Then create a new list using the filtered PnP template.
You can use Get-PnPProvisioningTemplate to export a list as a template and then recreate the list on another site using Apply-PnPProvisioningTemplate.
To export just a specific list you would use the following syntax:
Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/comsite
Get-PnPProvisioningTemplate -Handlers Lists -ListsToExtract <GUID or ...
SharePoint will not delete entries out of the History List on its own -- however, when this list inevitably exceeds the List View Threshold, it will not break any of the history lists displayed on Workflow status. You will only run into a problem if your users navigate to and view that list directly. If you are only interacting with the list through its ...
The list will not be cleared automatically.
You need to delete those items manually or maybe using any script.
Note: If you have any extra "log to history list" actions in your workflow then you can delete them once you are done with development and workflow is live.
Purge SharePoint Workflow History List.
Maintain SharePoint Workflow ...