Quantcast
Viewing all articles
Browse latest Browse all 10096

How to get the folder list under https://mytenant-my.sharepoint.com/personal/ via PowerShell

Hello all,

My main objective is to automatically populate set of folders for ALL OD4B accounts via PowerShell.

So far, I was able to:

1. Setup Admin Access for each OD4B User Account

- https://www.itunity.com/article/administrative-access-onedrive-business-environment-user-2792

2. Access the URL and create bunch of folders via Add-SPOFolder feature with exact URL such as:

- https://mytenant-my.sharepoint.com/personal/MyUserID_Mytenant_onmicrosoft_com/Documents

- https://mytenant-my.sharepoint.com/personal/MyUserID_Mytenant_com/Documents

The problem is that depending on WHEN I created the account (Before or after I add Mytenant.com (and Mytenant.net, Mytenanet.org) Domains to Office 365, I have 2 (or more) random URLs after /personal/

I can go through every possible combinations until it is successful but I hope that there is BETTER way of listing all exact URLs of each OD4B per user... (I already tried Connect-SPOnline -Url https://mytenant-my.sharepoint.com/personal and it returns an error)

Can someone shed a light on this please?

Thanks,

Young-


YPae



Viewing all articles
Browse latest Browse all 10096

Trending Articles