Forum Discussion

KEGAN1975's avatar
KEGAN1975
Brass Contributor
Jun 09, 2023

Powershell pre provisioning One Drives on a M365 tenant

I'm new to PowerShell and trying to follow these instructions to pre provision OneDrives in bulk on a tenant

https://learn.microsoft.com/en-us/sharepoint/pre-provision-accounts#pre-provision-many-users-at-the-same-time

I connect to my tenant , create a text file with users and save to C drive then try and run the script but get these errors (see pic) any idea what I'm doing wrong? probably something really simple

  • Hello,
    What format did you gave to the users file? did you save it where you are calling it? (C:\users.txt)
    • KEGAN1975's avatar
      KEGAN1975
      Brass Contributor
      I called it users and it's a .txt file then saved on my c drive
      • KEGAN1975's avatar
        KEGAN1975
        Brass Contributor
        yes , this is the path where I saved it "C:\users.txt"

Resources