I could not get the script provided to work so I used this one.
Source Website
https://github.com/29039/29039s-useful-stuff/blob/main/m365-sharepoint-online-set-parserdisabled.md
Script 1 - Prerequisites installation stage 1 (Run as Admin):
------
#Prerequisites installation stage 1 (Run as Admin)
#
https://chocolatey.org/install
#
https://nodejs.org/en/download/package-manager/#windows
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('
https://community.chocolatey.org/install.ps1'))
choco install -y nvs
#powershell needs restarting for nvs to actually work
Write-Host "Please exit powershell and re-open" -ForegroundColor Green
Pause
exit
Make sure you EXIT powershell after you run Script 1, or Script 2 won't work.
Script 2 - Prerequisites installation stage 2 (Run as Admin):
--------
#Prerequisites installation stage 2 (Run as Admin)
#
https://pnp.github.io/cli-microsoft365/user-guide/installing-cli/
nvs add lts
nvs use lts
npm install -g @pnp/cli-microsoft365
------
Script 3 - Change the ParserDisabled to true (No need to run as Admin):
(Make sure you update the $SiteURL and $SiteList as applicable)
-------------------
#Actually use the CLI for Microsoft 365 to change ParserDisabled to true (No need to run as Admin)
#vars
$SiteURL = "
https://contoso.sharepoint.com"
$SiteList = "Documents"
#lets go
m365 version
m365 login --authType browser
$SiteID = m365 spo list get --webUrl $SiteURL --title $SiteList --properties "Id" --output "json" | ConvertFrom-JSON
m365 spo list get --webUrl $SiteURL --title $SiteList --properties "Id,ParserDisabled"
m365 spo list set --webUrl $SiteURL --id $SiteID.ID --parserDisabled true
#end it
m365 logout
-------------------