New-PnPPersonalSite

Office365 only: Creates a personal / OneDrive For Business site

Syntax

New-PnPPersonalSite
   -Email <String[]>
                      [-Connection <SPOnlineConnection>]

Examples

------------------EXAMPLE 1------------------

$users = ('katiej@contoso.onmicrosoft.com','garth@contoso.onmicrosoft.com')
                 New-PnPPersonalSite -Email $users

Creates a personal / OneDrive For Business site for the 2 users in the variable $users

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Email

The UserPrincipalName (UPN) of the users

Type:String[]
Position:0
Accept pipeline input:False
Accept wildcard characters:False