Set-CMEndpointProtectionPoint

修改 Endpoint Protection 的月台系統角色。

語法

Set-CMEndpointProtectionPoint
   -InputObject <IResultObject>
   [-PassThru]
   -ProtectionService <MapsMembershipType>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMEndpointProtectionPoint
   [-PassThru]
   -ProtectionService <MapsMembershipType>
   [-SiteCode <String>]
   [-SiteSystemServerName] <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Set-CMEndpointProtectionPoint Cmdlet 會修改 Configuration Manager 中 System Center 2016 Endpoint Protection 的月台系統角色。

Endpoint Protection 可讓您在 Configuration Manager 中管理用戶端電腦的反惡意代碼原則和 Windows 防火牆安全性。 若要搭配 Configuration Manager 使用 Endpoint Protection,您必須在中央月臺或獨立主要站台中安裝 Endpoint Protection 的單一月臺系統角色。 如需 Configuration Manager 中 Endpoint Protection 的詳細資訊,請參閱 Configuration Manager 中的 Endpoint Protection

注意事項

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

範例

範例 1:設定端點保護點

PS XYZ:\> Set-CMEndpointProtectionPoint -SiteSystemServerName "CM-Contoso.Contoso.Com" -SiteCode "CM2" -ProtectionService AdvancedMembership

命令會設定伺服器的端點保護點,並指定 ProtectionService 參數的成員資格類型。

範例 2:使用輸入物件設定端點保護點

PS XYZ:\> $Epp = Get-CMEndpointProtectionPoint -SiteSystemServerName "CM-Contoso.Contoso.Com" -SiteCode "CM2"
PS XYZ:\> Set-CMEndpointProtectionPoint -InputObject $Epp -ProtectionService BasicMembership

第一個命令會使用 Get-CMEndpointProtectionPoint Cmdlet 來取得端點保護點,並將結果儲存在$Epp變數中。

第二個命令會使用上一個命令的輸入物件,設定伺服器的端點保護點。

參數

-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-CMEndpointProtectionPoint Cmdlet。

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

-PassThru

新增此參數以傳回 物件,代表您正在使用的專案。 根據預設,此 Cmdlet 可能不會產生任何輸出。

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

-ProtectionService

指定要為 Microsoft Active Protection Service (MAPS) 設定的成員資格類型。 此參數可接受的值為:

  • AdvancedMembership
  • BasicMembership
  • DoNotJoinMaps
類型:MapsMembershipType
接受的值:DoNotJoinMaps, BasicMembership, AdvancedMembership
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