Forum Discussion
KrisSub2023
Jul 21, 2023Brass Contributor
How do i get current OneDrive location from Multi Geo Tenat enviorment
Get-SPOUserOneDriveLocation -UserPrincipalName "email address removed for privacy reasons" gives location what exactly i need. How can i get the same by using PNP command? Please help. I'm runnin...
KrisSub2023
Jul 21, 2023Brass Contributor
Looks User parameter is not available with this command. Please find the below error. Thanks for your response
Get-PnPTenantSite : A parameter cannot be found that matches parameter name 'User'.
Get-PnPTenantSite : A parameter cannot be found that matches parameter name 'User'.
Jul 23, 2023
ChatGPT generated answer unfortunately, those can be abit hit and miss as it can invent variables that does't exist ![]()
You can just run this:
Connect-SPOService -Url https://yourtentant-admin.sharepoint.com
Get-SPOUserOneDriveLocation -UserPrincipalName "The UPN You want to checl"
- KrisSub2023Jul 25, 2023Brass ContributorI know about this. but is there any way to get from pnp commands ?
- Jul 26, 2023Unfortunatly there's no PnP command for this as of yet 😞
But SPO module works in runbook so just install this one and then run it:
https://www.powershellgallery.com/packages/Microsoft.Online.SharePoint.PowerShell/16.0.21411.12000- KrisSub2023Aug 01, 2023Brass ContributorCan you help how can i use Connect-SPOService with in my runbook ? i can't save the credentials within the automation account as per policy . what is the approach for other type of authentication ?