Remove-CMWdacSetting
从站点中删除Microsoft Defender 应用程序控制策略。
语法
Remove-CMWdacSetting
[-CMSettings] <CMSettings>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
说明
从站点中删除Microsoft Defender 应用程序控制策略。 使用 Get-CMWdacSetting 获取现有策略对象。
示例
示例 1
此示例按名称获取对象,然后将其从网站中删除。
Get-CMWdacSetting -Name "My App Control setting" | Remove-CMWdacSetting
参数
-CMSettings
指定要删除的Microsoft Defender 应用程序控制策略对象。 使用 Get-CMWdacSetting 获取此对象。
| 类型: | CMSettings |
| Position: | 1 |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | True |
| 接受通配符: | False |
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-Force
运行命令而不要求确认。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
输入
Microsoft.ConfigurationManagement.PowerShell.Cmdlets.EP.SimplifiedSettings.CMSettings
输出
System.Object