sharepoint:pnp:tenant_administration

Tenant Administration

Cmdlet Description
Get-PnPAccessToken Returns the current OAuth Access token
Enable-PnPCommSite Enable communication site on the root site of a tenant
Get-PnPHideDefaultThemes Returns if the default / OOTB themes should be visible to users or not.
Set-PnPHideDefaultThemes Defines if the default / OOTB themes should be visible to users or not.
Get-PnPHomeSite Returns the home site url for your tenant
Remove-PnPHomeSite Removes the currently set site as the home site
Set-PnPHomeSite Sets the home site for your tenant
Get-PnPHubSite Retrieve all or a specific hubsite.
Register-PnPHubSite Registers a site as a hubsite
Set-PnPHubSite Sets hubsite properties
Unregister-PnPHubSite Unregisters a site as a hubsite
Add-PnPHubSiteAssociation Connects a site to a hubsite.
Remove-PnPHubSiteAssociation Disconnects a site from a hubsite.
Grant-PnPHubSiteRights Grant additional permissions to the permissions already in place to associate sites to Hub Sites for one or more specific users
Add-PnPOffice365GroupToSite Groupifies a classic team site by creating an Office 365 group for it and connecting the site with the newly created group
Disable-PnPPowerShellTelemetry Disables PnP PowerShell telemetry tracking
Enable-PnPPowerShellTelemetry Enables PnP PowerShell telemetry tracking.
Get-PnPPowerShellTelemetryEnabled Returns true if the PnP PowerShell Telemetry has been enabled.
New-PnPSite Creates a new site collection
Add-PnPSiteCollectionAppCatalog Adds a Site Collection scoped App Catalog to a site
Remove-PnPSiteCollectionAppCatalog Removes a Site Collection scoped App Catalog from a site
Add-PnPSiteDesign Creates a new Site Design on the current tenant.
Get-PnPSiteDesign Retrieve Site Designs that have been registered on the current tenant.
Invoke-PnPSiteDesign Apply a Site Design to an existing site. * Requires Tenant Administration Rights *
Remove-PnPSiteDesign Removes a Site Design
Set-PnPSiteDesign Updates a Site Design on the current tenant.
Get-PnPSiteDesignRights Returns the principals with design rights on a specific Site Design
Grant-PnPSiteDesignRights Grants the specified principals rights to use the site design.
Revoke-PnPSiteDesignRights Revokes the specified principals rights to use the site design.
Get-PnPSiteDesignRun Retrieves a list of site designs applied to a specified site collection. If the WebUrl parameter is not specified we show the list of designs applied to the current site. The returned output includes the ID of the scheduled job, the web and site IDs, and the site design ID, version, and title.
Get-PnPSiteDesignRunStatus Retrieves and displays a list of all site script actions executed for a specified site design applied to a site.
Add-PnPSiteDesignTask This command is used to apply a published site design to a specified site collection target. It schedules the operation, allowing for the application of larger site scripts (Invoke-PnPSiteDesign is limited to 30 actions and subactions). This command is intended to replace Invoke-PnPSiteDesign and is useful when you need to apply a large number of actions or multiple site scripts.
Get-PnPSiteDesignTask Used to retrieve a scheduled site design script. It takes the ID of the scheduled site design and the URL for the site where the site design is scheduled to be applied.
Remove-PnPSiteDesignTask Removes a Site Design Task. If the execution of the associated site script has already started the execution will not be terminated.
Add-PnPSiteScript Creates a new Site Script on the current tenant.
Get-PnPSiteScript Retrieve Site Scripts that have been registered on the current tenant.
Remove-PnPSiteScript Removes a Site Script
Set-PnPSiteScript Updates an existing Site Script on the current tenant.
Get-PnPStorageEntity Retrieve Storage Entities / Farm Properties from either the Tenant App Catalog or from the current site if it has a site scope app catalog.
Remove-PnPStorageEntity Remove Storage Entities / Farm Properties from either the tenant scoped app catalog or the current site collection if the site has a site collection scoped app catalog
Set-PnPStorageEntity Set Storage Entities / Farm Properties in either the tenant scoped app catalog or the site collection app catalog.
Get-PnPTenant Returns organization-level site collection properties
Set-PnPTenant Sets organization-level site collection properties
Get-PnPTenantAppCatalogUrl Retrieves the url of the tenant scoped app catalog.
Get-PnPTenantCdnEnabled Retrieves if the Office 365 Content Delivery Network has been enabled.
Set-PnPTenantCdnEnabled Enables or disabled the public or private Office 365 Content Delivery Network (CDN).
Add-PnPTenantCdnOrigin Adds a new origin to the public or private content delivery network (CDN).
Get-PnPTenantCdnOrigin Returns the current registered origins from the public or private content delivery network (CDN).
Remove-PnPTenantCdnOrigin Removes an origin from the Public or Private content delivery network (CDN).
Get-PnPTenantCdnPolicies Returns the CDN Policies for the specified CDN (Public
Set-PnPTenantCdnPolicy Sets the CDN Policies for the specified CDN (Public
Clear-PnPTenantRecycleBinItem Permanently deletes a site collection from the tenant scoped recycle bin
Restore-PnPTenantRecycleBinItem Restores a site collection from the tenant scoped recycle bin
Disable-PnPTenantServicePrincipal Enables the current tenant's “SharePoint Online Client” service principal.
Enable-PnPTenantServicePrincipal Enables the current tenant's “SharePoint Online Client” service principal.
Get-PnPTenantServicePrincipal Returns the current tenant's “SharePoint Online Client” service principal.
Revoke-PnPTenantServicePrincipalPermission Revokes a permission that was previously granted to the “SharePoint Online Client” service principal.
Get-PnPTenantServicePrincipalPermissionGrants Gets the collection of permission grants for the “SharePoint Online Client” service principal
Approve-PnPTenantServicePrincipalPermissionRequest Approves a permission request for the current tenant's “SharePoint Online Client” service principal
Deny-PnPTenantServicePrincipalPermissionRequest Denies a permission request for the current tenant's “SharePoint Online Client” service principal
Get-PnPTenantServicePrincipalPermissionRequests Gets the collection of permission requests for the “SharePoint Online Client” service principal
Get-PnPTenantSite Retrieve site information.
New-PnPTenantSite Creates a new site collection for the current tenant
Remove-PnPTenantSite Removes a site collection
Set-PnPTenantSite Set site information.
Add-PnPTenantTheme Adds or updates a theme to the tenant.
Get-PnPTenantTheme Returns all or a specific theme
Remove-PnPTenantTheme Removes a theme
Get-PnPTimeZoneId Returns a time zone ID
Get-PnPWebTemplates Returns the available web templates.
  • sharepoint/pnp/tenant_administration.txt
  • Last modified: 2022/08/10 05:56
  • by 127.0.0.1