Set-SPAccessServicesDatabaseServerGroupMapping
設定或建立 Access Services 資料庫伺服器群組對應。
Syntax
Set-SPAccessServicesDatabaseServerGroupMapping
[-ServiceContext] <SPServiceContextPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-ClearMapping]
[-Confirm]
[-CorporateCatalog]
[-DeveloperSite]
[-ObjectModel]
[-RemoteObjectModel]
[-StoreFront]
[-WhatIf]
[<CommonParameters>]
Set-SPAccessServicesDatabaseServerGroupMapping
[-ServiceContext] <SPServiceContextPipeBind>
[-AssignmentCollection <SPAssignmentCollection>]
[-Confirm]
[-CorporateCatalog]
-DatabaseServerGroup <AccessServicesDatabaseServerGroupPipeBind>
[-DeveloperSite]
[-ObjectModel]
[-RemoteObjectModel]
[-StoreFront]
[-WhatIf]
[<CommonParameters>]
Description
此 Cmdlet 可讓您將資料庫伺服器群組設定為封裝來源對應。
範例
--------------------範例 1---------------------
$site = (Get-SPWebApplication -IncludeCentralAdministration | ?{$_.IsAdministrationWebApplication -eq $true}).Sites[0]
Set-SPAccessServicesDatabaseServerGroupMapping -ServiceContext $site -DatabaseServiceGroup GROUP2
建立名為 GROUP2 的 Access Services 資料庫群組。
--------------------範例 1---------------------
$site = (Get-SPWebApplication -IncludeCentralAdministration | ?{$_.IsAdministrationWebApplication -eq $true}).Sites[0]
Set-SPAccessServicesDatabaseServerGroupMapping -ServiceContext $site -DatabaseServiceGroup GROUP2 -CorporateCatalog
設定名為 GROUP2 的資料庫群組,將群組與來自公司目錄的套件產生關聯。
參數
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment
命令加以捨棄,則可能會有記憶體不足的狀況發生。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ClearMapping
清除資料庫群組對應。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Confirm
執行 Cmdlet 之前提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-CorporateCatalog
將資料庫伺服器群組與上傳至公司目錄的套件建立關聯 (SharePoint 增益集) 。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DatabaseServerGroup
要設定或建立之資料庫伺服器群組的名稱。
Type: | AccessServicesDatabaseServerGroupPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DeveloperSite
將資料庫伺服器群組與來自開發人員網站的套件產生關聯。 開發人員網站是一種 SharePoint 範本類型,其設計為可供開發人員建置、測試及發佈 Office 增益集的網站。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ObjectModel
將資料庫伺服器群組與透過伺服器端物件模型上傳的套件產生關聯。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-RemoteObjectModel
將資料庫伺服器群組與透過用戶端物件模型上傳的套件產生關聯。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ServiceContext
指定 SPServiceContext 物件執行個體形式的服務內容、 SPSiteAdministration 物件識別碼或 SPSite 物件。 服務內容值範例包括:來自識別碼欄位的識別碼、字串識別碼、URI 或 GUID 的字串表示法。
Type: | SPServiceContextPipeBind |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-StoreFront
建立 SharePoint Marketplace 與資料庫伺服器群組的關聯。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-WhatIf
顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
輸入
Microsoft.SharePoint.PowerShell.SPServiceContextPipeBind
Microsoft.SharePoint.PowerShell.SPAssignmentCollection
輸出
System.Object