TestimoX

API Reference

Command

Set-CxDefenderExclusion

Namespace ComputerX.PowerShell

Implements the Set-CxDefenderExclusion cmdlet.

Examples

Authored help example

Example 1


Set-CxDefenderExclusion -ComputerName SERVER1
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Set-CxDefenderExclusion [-Path <string[]>] [-Process <string[]>] [-Extension <string[]>] [-ComputerName <string>] [-Replace] [<CommonParameters>]
#

Parameters

Path string[] optionalposition: 0pipeline: false
File or folder paths to exclude from Microsoft Defender scans.
Process string[] optionalposition: 1pipeline: false
Process image names to exclude (e.g., 'sqlservr.exe').
Extension string[] optionalposition: 2pipeline: false
File extensions (without dot), e.g., 'ldf','mdf','vhdx'.
ComputerName string optionalposition: namedpipeline: false
Target computer(s). Use '.' for local computer or provide DNS names.
Replace SwitchParameter optionalposition: namedpipeline: false
Replace existing lists instead of merging with them.