Sunday, April 5, 2026

Pre-provision OneDrive script syntax example

At time of writing, April/2026 when you pre-provision one drive for a migration, this URL in microsoft provides you a PowerShell script

Pre-provision OneDrive for users in your organization - SharePoint in Microsoft 365 | Microsoft Learn

This script that you can download from Microsoft site looks like this:


You just have to change your 365 tenant ID, but doesn't give any real meaningful example of what you put in, so here's what worked.  And I changed my $true to $false.  I only modified the very top section, but here's the syntax in case you are having issues.


Ran the PowerShell as admin.  Entered in my user/pass for tenant admin credentials

Script ran:






No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.