PowerShell cmdlets for SharePoint hub sites
Use PowerShell cmdlets to create and manage SharePoint hub sites.
Get started
To run the PowerShell cmdlets:
- Download and install the SharePoint Online Management Shell. If you already have a previous version of the shell installed, uninstall it first, and then install the latest version.
- Follow the instructions at Connect to SharePoint Online PowerShell to connect to your SharePoint tenant.
To verify your setup, try using the Get-SPOHubSite cmdlet to read the current list of hub sites. If the cmdlet runs and returns with no errors, you're ready to proceed.
Hub site cmdlets
The following PowerShell cmdlets are available for managing hub sites:
cmdlet | Description |
---|---|
Add-SPOHubSiteAssociation | Adds a new association between a site and a hub site. |
Remove-SPOHubSiteAssociation | Removes an association between a site and a hub site. |
Get-SPOHubSite | Lists hub sites or hub site information. |
Grant-SPOHubSiteRights | Grants rights to users or security groups to access the hub site. |
Register-SPOHubSite | Enables the hub site feature on a site to make it a hub site. |
Revoke-SPOHubSiteRights | Revokes rights for specified principals to a hub site. |
Set-SPOHubSite | Sets the hub site information such as name, logo, and description. |
Unregister-SPOHubSite | Disables the hub site feature on a site. |
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기