New-PnPPersonalSite

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/New-PnPPersonalSite.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Office365 only: Creates a personal / OneDrive For Business site

Syntax

New-PnPPersonalSite
   [-Email] <String[]>
   [-Connection <PnPConnection>]
   [<CommonParameters>]

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:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Email

The UserPrincipalName (UPN) of the users

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