EdbMails EDB Recovery and Migration software
  • Products
    EdbMails
    All-in-one Recovery and Migration

    Trusted and internationally recognized software that delivers award winning solutions.

    Explore our products
    • Offline Recovery Tools
    • Migration Tools
    • G Suite Migration
    • IMAP Migration
    • Duplicate Remover
    • Backup
    • Windows Data Recovery

    Exchange EDB / Email Recovery Tools

    EdbMails offers a comprehensive suite of tools to recover and convert offline EDB, OST, and PST files into Outlook PST, migrate mailboxes to Office 365 and live Exchange Server, and export and migrate data from NSF, MBOX, EML, and MSG formats.

    EDB Recovery and Migration
    Recover EDB to PST, EDB to Office 365 and Exchange NO Duplicate Migration
    NSF Export and Migration
    Export NSF to PST, NSF to Office 365 and Exchange Migration
    OST Recovery and Migration
    Recover OST to PST, OST to Office 365 and Exchange Migration
    EML to PST Export
    EML files export to Outlook PST format
    PST Recovery and Migration
    Recover Outlook PST, PST to Office 365 and Exchange Migration
    PST to MSG Export
    Outlook PST files export to MSG format
    MBOX Export and Migration
    Export MBOX to PST, MBOX to Office 365 and Exchange Migration
    MSG to PST Export
    Export MSG files to Outlook PST files

    Exchange, Office 365, IMAP, SharePoint, OneDrive, Teams

    EdbMails lets you securely migrate mailboxes across Microsoft 365, Exchange, Google Workspace (G Suite), and IMAP-supported servers such as Outlook, Gmail, Zimbra, Zoho Mail, and cPanel, ensuring zero downtime.

    Exchange Server Migration
    Migrate between any Exchange Servers, Exchange to Office 365, Exchange to PST, PST files to Exchange.
    SharePoint Online Migration
    Migrate documents, lists, files and folders from SharePoint sites.
    Office 365 Migration
    Migrate between Office 365 tenants, Office 365 to Exchange, Office 365 to PST, PST files to Office 365.
    OneDrive for Business Migration
    Migrate documents, lists, files and folders from OneDrive.
    Microsoft Teams Migration
    Migrate Teams, chats, channels, documents, files and folders etc.

    Google Workspace / G Suite Migration

    EdbMails G Suite Migration Tool lets you easily migrate emails, calendars, contacts, tasks, and more from G Suite to Office 365, Exchange Server, and IMAP servers using a Google Admin account without requiring individual user credentials.

    G Suite Migration
    Migrate emails, calendars, contacts, tasks from G Suite to Office 365, G Suite to Exchange, G Suite to IMAP Servers
    G Suite to Office 365
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to Office 365
    G Suite to Exchange Server
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to on-Premise Exchange Server
    G Suite to IMAP
    Migrate emails, calendars, contacts, tasks from Google Workspace / G Suite to IMAP, Outlook, Zimbra, Zoho etc.

    IMAP Migration

    EdbMails IMAP Migration tool lets you easily migrate emails from IMAP servers such as Outlook, Gmail, Zoho Mail, Zimbra, cPanel, and more. Supports IMAP to IMAP, Office 365, Exchange Server, PST, and bulk PST to IMAP migration.

    IMAP Email Backup & Migration
    Backup and migrate emails from IMAP servers to PST, Office 365, and On-Premises Exchange Server
    IMAP to Office 365
    Migrate emails, folders, and attachments from IMAP servers to Office 365
    IMAP to Exchange
    Migrate emails, folders, and attachments from IMAP servers to on-premises Exchange Server
    IMAP to PST
    Export emails, folders, and attachments from IMAP servers to Outlook PST files for backup
    PST to IMAP
    Migrate emails, folders, and attachments from bulk PST files to IMAP servers

    Duplicate Remover

    EdbMails Duplicate Remover lets you easily remove duplicate items from Office 365 and Exchange Server, and from IMAP, Outlook, Gmail, Zimbra, Zoho Mail, etc., ensuring a clean and organized mailbox.

    Remove Duplicates from Office 365
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from Office 365.
    Remove Duplicates from Exchange Server
    Remove duplicate emails, calendars, contacts, journal tasks, etc. from live Exchange Server.
    Remove Duplicates from IMAP, Outlook
    Remove duplicate emails, attachments from IMAP, Outlook, Gmail, Zimbra, Zoho Mail etc.

    Exchange, SharePoint, OneDrive, Teams and Office 365 Backup

    EdbMails enables secure, automated backup and recovery for Microsoft 365 services including Exchange Online, SharePoint, OneDrive, Teams, and Live Exchange Server with complete data protection and restore flexibility.

    Office 365 Backup
    Incremental, Granular, Encrypted and Compressed Office 365 Mailboxes Backup
    Exchange Server Backup
    Incremental, Granular, Encrypted and Compressed Exchange Mailboxes Backup
    SharePoint, OneDrive & Teams Backup
    Backup Online site collections, Team sites, Office 365 groups, all documents etc.

    Windows Data Recovery

    EdbMails Windows Data Recovery Software lets you recover permanently deleted data, including photos, videos, documents, and archived files, from partitions on hard drives, SSDs, USB drives, SD cards, and external storage devices.

    Windows Data Recovery
    Recover and restore permanently deleted data from hard drives, SSDs, USB drives, SD cards, and etc.
    Whitepaper
    Request a Demo
    Sign Up
  • Features
  • FAQ
  • Pricing
  • Download
  • Support
  • Sign in
User’s Manual
OndeDrive Migration

User Manual

User Manual

  • FAQ
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • Videos
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • Screenshots
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Office 365 Migration
  • How it works?
    • SharePoint Migration
    • OneDrive Migration
    • Microsoft Teams Migration
    • Chats and Channels Migration
  1. Home
  2. Product
  3. Create OneDrive for Business Site Collections for All using PowerShell commands
Download Buy Now

Create OneDrive for business site collections for all users

For a successful OneDrive site migration in EdbMails, it's important to have the necessary OneDrive sites available on the target server. This can be achieved by creating OneDrive sites for all users on the target server, which ensures that the site collections are accessible for the migration process.

In addition, granting admin access to all OneDrive for Business site collections on both the source and target servers is necessary to ensure that the migration process has the required permissions to access and transfer data from the site collections.

Commands to create OneDrive sites on the target server

Run the below PowerShell commands as an administrator to create the OneDrive sites on the target server for all the users

Command 1:

Command: Copy

Install-Module -Name ExchangeOnlineManagement -Scope AllUsers

Command 2:

Command: Copy

Connect-ExchangeOnline

Command 3:

Command: Copy

Get-EXOMailbox -ResultSize Unlimited | Select-Object PrimarySmtpAddress | export-csv C:\\users.csv

Command 4:

Command: Copy

Install-Module -Name Microsoft.Online.SharePoint.PowerShell

Command 5:

Command: Copy

Import-Module Microsoft.Online.SharePoint.PowerShell

Command 6:

Command: Copy

Connect-SPOService -Url https://<your_tenant>-admin.sharepoint.com

Replace <your_tenant> with the name of your server Microsoft 365 tenant

Command 7:

Command: Copy

$Users = Import-CSV C:\users.csv

Command 8:

Command: Copy

ForEach ($User in $Users) { Request-SPOPersonalSite -UserEmails $User.PrimarySmtpAddress -NoWait }

The above script is designed to create OneDrive for Business site collections for each user specified in a CSV file. Each site collection's URL will be in the format of https://<your_tenant>-my.sharepoint.com/personal/<user_upn>, where "<your_tenant>" is the name of your Microsoft 365 tenant and "<user_upn>" is the user principal name of each user. The owner of each site collection will be set to the corresponding user specified in the CSV file.

Grant admin access to all OneDrive for business site collections

Granting administrative access to all OneDrive for Business site collections allows a specified user to manage user permissions and settings for multiple site collections at once. This enables the user to perform administrative tasks across multiple site collections more efficiently, saving time and effort.

Commands to grant admin access to all OneDrive for business site collections

Run the below PowerShell commands as an administrator for both source and target servers

Command 1:

Command: Copy

Install-Module -Name ExchangeOnlineManagement -Scope AllUsers

Command 2:

Command: Copy

Connect-ExchangeOnline

Command 3:

Command: Copy

Get-EXOMailbox -ResultSize Unlimited | Select-Object PrimarySmtpAddress | export-csv C:\\users.csv

Command 4:

Command: Copy

Install-Module -Name Microsoft.Online.SharePoint.PowerShell

Command 5:

Command: Copy

Import-Module Microsoft.Online.SharePoint.PowerShell

Command 6:

Command: Copy

Connect-SPOService -Url https://<your_tenant>-admin.sharepoint.com

Replace <your_tenant> with the name of your server Microsoft 365 tenant

Command 7:

Command: Copy

$o365login = "<info@domain.onmicrosoft.com>"

Replace the email address <info@domain.onmicrosoft.com> with your actual email address

Command 8:

Command: Copy

Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'" | select Url | export-csv C:\\sites.csv

Command 9:

Command: Copy

$Sites = Import-CSV C:\sites.csv

Command 10:

Command: Copy

ForEach ($Site in $Sites) { Set-SPOUser -Site $Site.Url -LoginName $o365login -IsSiteCollectionAdmin $true }

Click here to know the steps to migrate OneDrive sites using EdbMails

 In this manual

Commands to create OneDrive sitesGrant admin access to all OneDrive

OneDrive Migration

Just 10 Sites $80 Only

Buy Now

Need help?

24/7 Customer support

Contact us on Live chat

Personalized Demo

Book a personalized demo

Still need help?

Email us / Call us

@edbmails.com All rights are reserved Privacy Policy | Terms of Use | GDPR | Security | Press Releases

hidden msg
Live Chat

Hi, May I help you?

Hide Chat Now