OneDrive user accounts don’t get automatically created even after purchasing a license; get created when we manually log in. Office 365 mailbox creation doesn’t guarantee the creation of the SharePoint OneDrive. But, in many cases, creating OneDrive user accounts and knowing the location is necessary. In the following condition, there is a need to develop and know the location of OneDrive:
- If you are planning to migrate to SharePoint Online (Microsoft 365).
- Your organization might be migrating from any other cloud drive to OneDrive.
- In Enterprises, while onboarding new employees, the HR department may need to activate OneDrive before joining and signing.
There might be any other reason for this, but whatever the reason, the way to activate the SharePoint OneDrive before manually logging in, PowerShell cmdlets are given below:
Point to be Noted:
- Before pre-provisioning, the users must be ensured that the SharePoint License has been assigned and can be signed in.
- To run the PowerShell command below, you must be an administrator and have an assigned SharePoint license.
Must Keep in Mind:
If you are pre-provisioning for multiple OneDrive users, then OneDrive location creation can take many days.
Steps for Pre-Provisioning OneDrive Users:
- If you have multiple users for pre-provisioning, then create a list of users and save it in the .txt file format.
E.g.
user1@shoviv.com,
user2@shoviv.com,
user3@shoviv.com
- The latest version of the SharePoint Management Shell must be installed. If the latest version is not installed then you can install it from here.
- As a SharePoint Administrator, connect with the SharePoint.
Connect-SPOService -Url https://< organization >-admin.sharepoint.com
Note: Mention your organization name in place of “< organization >” and login using Admin Credentials.
- Run the PowerShell Command using the text file that was earlier created.
$users = Get-Content -path "C:\Users.txt"
Request-SPOPersonalSite -UserEmails $users
Note: "C:\Users.txt" is the file path.
Note:
- OneDrive activation may take some time.
- If you want to explore more about it, click here: Microsoft’s Guide