共用方式為


Add-CMServiceConnectionPoint

將服務連接點新增至月台系統伺服器。

語法

Add-CMServiceConnectionPoint
   -InputObject <IResultObject>
   -Mode <ServiceConnectionPointMode>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-CMServiceConnectionPoint
   -Mode <ServiceConnectionPointMode>
   [-SiteCode <String>]
   [-SiteSystemServerName] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Add-CMServiceconnectionPoint Cmdlet 會將服務連接點角色新增至月台系統伺服器。 這會將 Configuration Manager 連線到Microsoft雲端服務,並可讓您新增 Microsoft Intune 訂用帳戶,以及更新您的 Configuration Manager 安裝。

注意事項

從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet,例如 PS XYZ:\>。 如需詳細資訊,請 參閱開始使用

範例

範例 1:新增服務連接點

PS XYZ:\> Add-CMServiceConnectionPoint -SiteSystemServerName "TestServer01.Contoso.com" -SiteCode PS1 -Mode Online

此命令會將服務連接點站台系統角色新增至名為 TestServer01.Contoso.com 和月臺碼 PS1 的月台系統伺服器。 命令會將模式設定為在線。

範例 2:使用變數新增服務連接點

PS XYZ:\> $Server = Get-CMSiteSystemServer -SiteCode PS1 -SiteSystemServerName "TestServer02.Contoso.com"
PS XYZ:\> Add-CMServiceConnectionPoint -InputObject $Server -Mode Online

第一個命令會取得名為 TestServer02.Contoso.com 月臺碼 PS1 的月台系統伺服器物件,並將物件儲存在 $Server 變數中。

第二個命令會將服務連接點站臺系統角色新增至儲存在 $server 中的月臺系統伺服器,並將模式設定為在線。

範例 3:使用管線新增服務連接點

PS XYZ:\> Get-CMSiteSystemServer -SiteCode PS1 -SiteSystemServerName "TestServer03.Contoso.com" | Add-CMServiceConnectionPoint -Mode Online

此命令會取得名為 TestServer03.Contoso.com 月臺碼 PS1 的月台系統伺服器物件,並使用管線運算符將對象傳遞至 Add-CMServiceConnectionPoint,這會將服務連接點站台系統角色新增至站台系統伺服器物件,並將模式設定為在線。

參數

-Confirm

執行 Cmdlet 之前提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-DisableWildcardHandling

此參數會將通配符視為常值字元值。 您無法將其與 ForceWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ForceWildcardHandling

此參數會處理通配符,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

指定服務連接點物件。 若要取得服務連接點物件,請使用 Get-CMServiceConnectionPoint Cmdlet。

類型:IResultObject
別名:SiteServer
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Mode

指定服務連接點的模式。 有效值為:

  • 線上
  • 離線
類型:ServiceConnectionPointMode
接受的值:Online, Offline
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SiteCode

指定 Configuration Manager 月臺的月臺碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-SiteSystemServerName

指定要裝載服務連接點角色的站台系統伺服器名稱。

類型:String
別名:Name, ServerName
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

輸出

IResultObject