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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.