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>]

说明

Set-CMEndpointProtectionPoint cmdlet 修改 Configuration Manager 中 System Center 2016 Endpoint Protection 的站点系统角色。

Endpoint Protection 允许在 Configuration Manager 中管理客户端计算机的反恶意软件策略和 Windows 防火墙安全性。 若要将 Endpoint Protection 与 Configuration Manager 配合使用,必须在中心站点或独立主站点中安装 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