API Reference
Command
Set-CxDefenderExclusion
Implements the Set-CxDefenderExclusion cmdlet.
Examples
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[]
- File or folder paths to exclude from Microsoft Defender scans.
- Process string[]
- Process image names to exclude (e.g., 'sqlservr.exe').
- Extension string[]
- File extensions (without dot), e.g., 'ldf','mdf','vhdx'.
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- Replace SwitchParameter
- Replace existing lists instead of merging with them.