Fix for some SharePoint onprem installations