Get-SPOUserOneDriveLocation
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.
Syntax
Default (Default)
Get-SPOUserOneDriveLocation
-UserPrincipalName <String>
[<CommonParameters>]
Description
This command will return information about the OneDrive location for the specified user.
Examples
EXAMPLE 1
Get-SPOUserOneDriveLocation -UserPrincipalName admin@contoso.com
Get the current location the user's OneDrive location, url, and site ID.
Parameters
-UserPrincipalName
Applicable: SharePoint Online
UserPrincipalName or UPN defined for the specific user on the SPO tenant.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.