Get-PnPTenant

Returns organization-level site collection properties

Syntax

Get-PnPTenant
   [-Connection <SPOnlineConnection>]

Description

Returns organization-level site collection properties such as StorageQuota, StorageQuotaAllocated, ResourceQuota, ResourceQuotaAllocated, and SiteCreationMode.

Currently, there are no parameters for this cmdlet.

You must be a SharePoint Online global administrator to run the cmdlet.

Examples

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

Get-PnPTenant

This example returns all tenant settings unsorted

------------------EXAMPLE 2------------------

Get-PnPTenant > tenantprops.txt
Get-Content .\tenantprops.txt | Sort

This example returns all tenant settings sorted

Optional 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