SharePoint 空格預計從 2025 年 3 月開始淘汰,並於 2025 年 8 月完成移除支援。 Microsoft Mesh 提供許多用於撰寫 3D 環境的相同工具,並可讓多人同時加入活動、以虛擬人偶表示,以及使用空間化音訊互相通訊。 我們建議您針對未來的沈浸式 3D 體驗需求探索 Mesh。
對於某些現有內容,可能更容易或更符合您在 SharePoint 中轉換的需求,並運用包含影像、影片等的 SharePoint 頁面。 在空間中使用或使用檔案預覽來檢視文檔庫中的360°影像和影片。 這可讓您編輯、發佈及檢視類似 SharePoint 空格的內容。
案例 |
網孔 |
SharePoint 空格 |
SharePoint 頁面 |
---|---|---|---|
建立 3D 沈浸式空間 |
是 |
是 |
否 |
共同出席和 3D 沈浸式活動 |
是 |
否 |
否 |
隨時發佈內容存取 |
否 |
是 |
是 |
識別 SharePoint 空間內容
您可以使用 SharePoint 搜尋來搜尋您有權存取的 SharePoint 空格內容。 在租用戶的頂層 SharePoint 網站中,輸入“SPContentType:空格”,搜尋會傳回您有權存取的所有空格。 您可以排序此檢視,以顯示最近建立或修改過的空格。
您可以流覽至 [頁面] 文檔庫,並尋找任何含有 「空間」內容類型的檔案,藉此識別網站中的空格內容。 請注意,預設不會顯示此欄,因此選取 [新增欄] 后,您可能需要在 [ 顯示或隱藏欄 ] 對話框中顯示 它。
使用空間內容識別網站的 PnP PowerShell 腳本範例
您可以使用 PnP PowerShell 腳本來識別啟用 [空間] 功能的 SharePoint 網站。 範例腳本如下所示,可協助您開始使用。 如果您先前未使用過 SharePoint PnP,您必須依照 使用者入門 指示來建立 EntraAppClientID。 執行此腳本的用戶必須有權存取租使用者中的所有網站,否則使用者無法存取的任何網站都會失敗;不過,腳本會針對使用者有權存取的所有網站執行到完成,而且您可以合併多位用戶的結果,以達成更廣泛的涵蓋範圍。
$entraAppClientID = "[EnterEntraAppID From PnP Setup Instructions]" # Define the Spaces feature GUIDs #$featureGuid = "2AC9C540-6DB4-4155-892C-3273957F1926" #use this GUID to check for sites where the feature is currently enabled $featureGuid = "f4c52091-703d-431c-ac2d-41f9f257052a" #this GUID checks for sites that have ever had the feature enabled and therefore may have spaces in its library
# Connect to SharePoint Online $adminUrl = "https://[InsertTenantInfo].sharepoint.com" $connection = Connect-PnPOnline -Url $adminUrl -Interactive -ClientId $entraAppClientID -ReturnConnection
# Get all site collections $sites = Get-PnPTenantSite -Detailed -Connection $connection $results = @() foreach ($site in $sites) { echo $site.Url
# Connect to the site
Connect-PnPOnline -Url $site.Url -Interactive -ClientId $entraAppClientID -Connection $connection # Check if the MixedReality feature is enabled $feature = Get-PnPFeature -Identity $featureGuid -Scope Site if ($feature.DefinitionId -eq $featureGuid) { # Get the pages library $pagesLibrary = Get-PnPList -Identity "SitePages" echo "Feature On" # Get all pages with content type "Space" $spacePages = Get-PnPListItem -List $pagesLibrary | Where-Object {$_.FieldValues.MetaInfo -match 'ContentTypeId:SW\|0x0101009D1CB255DA76424F860D91F20E6C41180043153F945E98468297E67C3EEE43AB7000'} # Get the total number of spaces $totalSpacePages = $spacePages.Count # Store the result $results += [PSCustomObject]@{ SiteUrl = $site.Url FeatureGuid = $featureGuid TotalSpaces = $totalSpacePages } }}
# Output the results $results | Format-Table -AutoSize
只使用應用程式存取
If you do not have a user account that has access to all sites, you can utilize App Only access and grant the appropriate application permissions to the Entra ID application (see section “Setting up access to your own Entra ID App for App Only Access and ensure you grant SharePoint permissions sites.read.all or sites.full.control) you create for SharePoint PnP Powershell.
設定好 Entra ID 應用程式識別碼之後,請將憑證詳細數據新增至腳稿:
$certPath = "[Insert Path to Certificate]" $certPassword = ConvertTo-SecureString -String “[Insert password string]” -AsPlainText -Force $tenantId = “[Insert Tenant ID]”
然後將 [互動式登入] 中的 [Connect-PnPOnline] 命令變更為使用 [僅限應用程式] 存取:
$connection = Connect-PnPOnline -Url $adminUrl -Interactive -ClientId $entraAppClientID -CertificatePath $certPath -CertificatePassword $certPassword -ReturnConnection
AND
Connect-PnpOnline -Url $site.Url -ClientId $entraAppClientID -Tenant $tenantId -CertificatePath $certPath -CertificatePassword $certPassword -Connection $connection
使用 PnP PowerShell 停用空格功能
停用您要防止建立新空間內容之網站上的 SharePoint 空格功能可能會很有用。 考慮執行此動作的原因之一是,如果您看到已啟用該功能的網站,但並未建立空格。 在我們於 2025 年 3 月默認關閉此功能之後,這些網站仍會繼續將 [ 空 格] 選項顯示在 [+新增 ] 功能表中,除非網站已關閉此功能。
下列 PnP PowerShell 命令會停用網站的功能:
$featureGuid = “2AC9C540-6DB4-4155-892C-3273957F1926”#x1 Disable-PnPFeature -Scope Web -Identity $featureGuid -Force
附註:
-
現代化工具和所有其他 PnP 元件都是開放原始碼工具,由提供支援之作用中社群所支援。 官方Microsoft支援通道沒有開放原始碼工具支援 SLA。
-
本範例不含任何明示或隱含的擔保,包括適合特定用途、適銷性或未侵權之任何默示的擔保