| external help file | Microsoft.Online.SharePoint.PowerShell.dll-Help.xml |
|---|---|
| Module Name | Microsoft.Online.SharePoint.PowerShell |
| online version | https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/get-spouseronedrivelocation |
| applicable | SharePoint Online |
| title | Get-SPOUserOneDriveLocation |
| schema | 2.0.0 |
| author | samkabue |
| ms.author | speedta |
| ms.reviewer |
This cmdlet will return the user principal name, current location, and corresponding OneDrive for Business url, and the site ID. This cmdlet only supports Multi-Geo OneDrive sites.
Get-SPOUserOneDriveLocation -UserPrincipalName <String> [<CommonParameters>]
This command will return information about the OneDrive location for the specified user.
Get-SPOUserOneDriveLocation -UserPrincipalName admin@contoso.comGet the current location the user's OneDrive location, url, and site ID.
Applicable: SharePoint Online
UserPrincipalName or UPN defined for the specific user on the SPO tenant.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.