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
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 [email protected]
Get the current location the user's OneDrive location, url, and site ID.
Parameters
-UserPrincipalName
UserPrincipalName or UPN defined for the specific user on the SPO tenant.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |