Office Apps in the browser (Excel Online/Word Online/PowerPoint Online/etc.) all utilise a user’s OneDrive Site Collection to gather their settings and configuration. If your users are somewhere other than the U.S., they probably use a sensible date format like dd/mm/yyyy or dd/mm/yy. None of this backwards mm/dd/yyyy stuff.
Users can change their own OneDrive locale in Site Collection Settings…but try telling that to 20,000 users. Along comes @brendankarl. This article provides a good start to getting this done, but it’s still a bit manual for my liking. Here’s my adaptation of Brendan’s script.
Firstly, you’ll need an account that’s a SharePoint Administrator or more. Chances are you’re a Global Admins member, so we’ll roll under that assumption. Additionally, you’ll want the
Microsoft.SharePointOnline.CSOM NuGet package, or grab the redistributable version.
Retrieve the scripts from the GitHub repository chrisbrownie/LocalizeOneDriveForBusiness.
Let’s assume we’re working on the Azure AD directory
There’s two scripts to run. The first will make you an Admin level user on every single OneDrive for Business in the tenant. Sounds nasty, and it kind of is. Make sure this isn’t going to get you fired.
GrantPermissionsForOneDriveOwnership.ps1 ` -TenantServiceDomain contoso ` -Credentials (Get-Credential [email protected])
Great, now we own everyone’s OneDrive for Business Sites, let’s set the new locale ID. Grab the ID number from here. We’ll set our Contoso users to utilise the English (Australia) locale, otherwise known as
LocalizeOneDriveForBusiness.ps1 ` -NewLocaleId 1234 ` -TenantServiceDomain contoso ` -Credentials (Get-Credential)
Easy as that! If you have 20,000 users, this will take a very long time.
There's no commenting functionality here. If you'd like to comment, please either mention me (@[email protected]) on Mastodon or email me. I don't have any logging or analytics running on this website, so if you found something useful or interesting it would mean a lot to hear from you.