I have a localized tenant and troubleshooting a SharePoint provisioning runbook. My problem is that it returns mixed (localized and English) error messages. Like New-PnPWeb gives English errors, but Apply-PnPProvisioningTemplate returns with Hungarian. I tried adding this to the script, didn't help:
[Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US' Can somebody give me a hint?