PowerShell commands 301

Clear
CommandWorkloadWhat it does
Get-SPOTenantApplyFileVersionPolicyJobProgress SharePoint Online Gets the status for a tenant apply file version policy job. SharePoint Advanced Management license or Copilot license is required to run...
Get-SPOTenantCdnEnabled SharePoint Online Returns whether Public content delivery network (CDN) or Private CDN is enabled on the tenant level. Requires Tenant administrator permissions.
Get-SPOTenantCdnOrigins SharePoint Online Lists all the configured origins under the tenancy or under a given site. You must be a SharePoint Online administrator to run this cmdlet.
Get-SPOTenantCdnPolicies SharePoint Online Get the public or private Policies applied on your SharePoint Online Tenant. Requires Tenant administrator permissions.
Get-SPOTenantContentTypeReplicationParameters SharePoint Online Gets content types for replication parameters
Get-SPOTenantLogEntry SharePoint Online Retrieves SharePoint Online company logs. This cmdlet is reserved for internal Microsoft use.
Get-SPOTenantLogLastAvailableTimeInUtc SharePoint Online Returns the most recent time when the SharePoint Online organization logs were collected.
Get-SPOTenantPreAuthSettings SharePoint Online Gets the configuration of pre-authentication.
Get-SPOTenantRenameSitePrioritization SharePoint Online Returns the list of sites that are prioritized for early execution, as part of Advanced Tenant Rename.
Get-SPOTenantRenameStatus SharePoint Online > [!IMPORTANT] > This feature is currently available to organizations that have no more than 10,000 total SharePoint sites and OneDrive...
Get-SPOTenantServicePrincipalPermissionGrants SharePoint Online Gets the collection of permission grants for the "SharePoint Online Client" service principal
Get-SPOTenantServicePrincipalPermissionRequests SharePoint Online Gets the collection of permission requests for the "SharePoint Online Client" service principal
Get-SPOTenantSyncClientRestriction SharePoint Online Returns the current configuration status.
Get-SPOTenantTaxonomyReplicationParameters SharePoint Online Get the replication parameters to manage Multi-Geo taxonomy replication.
Get-SPOTenantVersionPolicy SharePoint Online Returns the current tenant-level file version policy as an `SPOFileVersionPolicySettings` object.
Get-SPOTheme SharePoint Online
Get-SPOUnifiedGroup SharePoint Online Retrieves the Preferred Data Location for the specified Office 365 Group.
Get-SPOUnifiedGroupMoveState SharePoint Online Returns the state of an Office 365 Group move between Preferred Data Locations.
Get-SPOUser SharePoint Online Returns the SharePoint Online user or security group accounts that match a given search criteria.
Get-SPOUserAndContentMoveState SharePoint Online This cmdlet allows SharePoint administrators to check the status of a user or site move across geo locations.
Get-SPOUserOneDriveLocation SharePoint Online This cmdlet will return the user principal name, current location, and corresponding OneDrive for Business url, and the site ID. This...
Get-SPOVersionPolicyWithChanges SharePoint Online Returns a locally modified copy of a version policy.
Get-SPOWebTemplate SharePoint Online Displays all site templates that match the given identity.
Grant-SPOHubSiteRights SharePoint Online Grants rights to users or mail-enabled security groups to associate their site with a hub site.
Grant-SPOSiteDesignRights SharePoint Online Used to apply permissions to a set of users or a security group, effectively scoping the visibility of the site design in the UX. They...
Invoke-SPOMigrationEncryptUploadSubmit SharePoint Online **Note**: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using...
Invoke-SPOSiteDesign SharePoint Online Applies a published site design to a specified site collection target. This allows a site design to be applied to an existing site...
Invoke-SPOSiteSwap SharePoint Online Invokes a job to swap the location of a site with another site while archiving the original site.
New-SPOAppBillingPolicy SharePoint Online Creates a new billing policy for an application owned by the tenant.
New-SPOContainerType SharePoint Online This cmdlet creates a new container type of standard or trial status. The standard container type can be created with the regular...
New-SPOFileArchivePolicy SharePoint Online Creates a new file archive policy for the tenant.
New-SPOListFileVersionBatchDeleteJob SharePoint Online Queues a job to trim versions from a document library.
New-SPOListFileVersionExpirationReportJob SharePoint Online Starts generating file version expiration report for a document library.
New-SPOMigrationEncryptionParameters SharePoint Online **Note**: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using...
New-SPOMigrationPackage SharePoint Online Cmdlet to create a new migration package based on source files in a local or network shared folder. > [!NOTE] > This cmdlet has been...
New-SPOPublicCdnOrigin SharePoint Online Creates a new public CDN on a document library in your SharePoint Online Tenant
New-SPOSdnProvider SharePoint Online Adds a new Software-Defined Networking (SDN) provider
New-SPOServicePrioritizationBillingPolicy SharePoint Online Creates a new billing policy for service prioritization in SharePoint Online.
New-SPOSite SharePoint Online Creates a new SharePoint Online site collection for the current company.
New-SPOSiteFileVersionBatchDeleteJob SharePoint Online Queues a job to trim versions for all document libraries in a site collection.
New-SPOSiteFileVersionExpirationReportJob SharePoint Online Generates a version storage usage report for a site collection. This report can be used to understand current version storage footprint...
New-SPOSiteGroup SharePoint Online Creates a new group in a SharePoint Online site collection.
New-SPOSiteManageVersionPolicyJob SharePoint Online Starts a background job to manage file versions and version history limits for all document libraries in the given site. > [!NOTE] >...
New-SPOSiteSharingReportJob SharePoint Online Creates a new sharing report job.
New-SPOTenantApplyFileVersionPolicyJob SharePoint Online Queues a job to apply the tenant-level file version policy across all sites. SharePoint Advanced Management license or Copilot license...
Register-SPODataEncryptionPolicy SharePoint Online Cmdlet to register customer encryption status for your geo tenant. For more information, see Controlling your data in Office 365 using...
Register-SPOHubSite SharePoint Online Enables the hub site feature on a site to make it a hub site. For more information visit SharePoint hub sites overview.
Remove-SPOAppBillingPolicy SharePoint Online Removes billing policy asscoiated with the application.
Remove-SPOContainer SharePoint Online Sends a Container to the Recycle Bin.
Remove-SPOContainerType SharePoint Online This cmdlet removes the container type specified from the tenant.
Remove-SPOContainerUser SharePoint Online Removes a user from a specified role in a SharePoint Embedded container.
Remove-SPOContentEventEmailAddresses SharePoint Online Removes the email addresses associated with the specified category of content event if they exist. Consequently, notification emails...
Remove-SPOContentSecurityPolicy SharePoint Online Removes a source from the **Content Security Policy** configuration.
Remove-SPODataAccessGovernanceInsight SharePoint Online This cmdlet deletes the given Data Access Governance (DAG) report.
Remove-SPODeletedContainer SharePoint Online Permanently deletes the specified Container from the Recycle Bin. This action cannot be undone.
Remove-SPODeletedSite SharePoint Online Removes a SharePoint Online deleted site collection from the Recycle Bin.
Remove-SPOExternalUser SharePoint Online Removes a collection of external users from the tenancy's folder.
Remove-SPOFileArchivePolicy SharePoint Online Removes (soft-deletes) a file archive policy.
Remove-SPOFileRequestBrandingProfile SharePoint Online Removes a branding profile (either primary or secondary) configured for the file request feature across the tenant.
Remove-SPOFontFile SharePoint Online Removes a SharePoint brand font file from the tenant's brand fonts library.