Forum Discussion
Alphanumbers
Apr 18, 2024Copper Contributor
Dynamic group rule syntax to show OneDrive users
Hi guys im trying to create a rule syntax that will pull all users who are licensed and have a OneDrive. is anyone able to help? thanks.
Kidd_Ip
Apr 19, 2024MVP
May pull a list by using this:
Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'" | Select URL, Owner, StorageQuota, StorageUsageCurrent, LastContentModifiedDate | Export-Csv -Path $CSVFile -NoTypeInformation