Forum Discussion
KEGAN1975
Jun 09, 2023Brass Contributor
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-us...
KEGAN1975
Jun 09, 2023Brass Contributor
strange , as a test I have two users email addresses from the tenant in the file who's One Drives are not provisioned. Should it be a .csv file or should it be saved somewhere different to C drive?
Jun 09, 2023
After running
$users = Get-Content -path "C:\Users.txt"
call the variable running:
$users
and see if there is any output
$users = Get-Content -path "C:\Users.txt"
call the variable running:
$users
and see if there is any output
- KEGAN1975Jun 09, 2023Brass Contributor
AndresGorzelany did you mean like this? (see pic) it bought up the two users on my file
- KEGAN1975Jun 09, 2023Brass ContributorI changed the text file to a .csv and it worked. From the microsoft link in original post it seems to suggest creating a .txt file
- KEGAN1975Jun 10, 2023Brass ContributorIt's worked once for one unprovisioned user and I'm doing exactly the same thing again for other un provisioned users and it doesn't work !
- KEGAN1975Jun 09, 2023Brass Contributorthat brings up the users on my text file . I'm not running it as an administrator either, is that anything to do with it?