While working through an issue with a customer today, we needed to add some OneDrive sites to a retention policy. No problem! Except for the part where no one has a list of OneDrive sites and the user interface doesn’t let you search or browse for them.
Oh, we can do this inside the OneDrive for Business Admin Too–wait, no we can’t.
[fingers of fury]
Yes. Yes we can now.
Using the new -ListOneDriveSites parameter, you can generate a list of all of the OneDrive sites in your tenant (or just the path to the OneDrive site for a few users–doesn’t really matter).
.\OneDriveForBusinessAdmin.ps1 -Credential (Get-Credential) -Tenant ems340903 -ListOneDriveSites -Identity email@example.com,firstname.lastname@example.org -ListOneDriveSitesOutput 2018-10-04_OneDriveForBusinessSiteList.csv
The update, as always, is free to a good home and available at http://aka.ms/OneDriveAdmin.