Set-UnattendedAntiMalware
SYNOPSIS
Configures the anti-malware solution of the OS
SYNTAX
Windows (Default)
Set-UnattendedAntiMalware [-Enabled] <Boolean> [<CommonParameters>]
CloudInit
Set-UnattendedAntiMalware [-Enabled] <Boolean> [-IsCloudInit] [<CommonParameters>]
Yast
Set-UnattendedAntiMalware [-Enabled] <Boolean> [-IsAutoYast] [<CommonParameters>]
Kickstart
Set-UnattendedAntiMalware [-Enabled] <Boolean> [-IsKickstart] [<CommonParameters>]
DESCRIPTION
Configures the anti-malware solution of the OS. Ignored on Windows Client SKU. On Linux, enables SELinux or sets it to permissive.
EXAMPLES
Example 1
PS C:\> Set-UnattendedAntiMalware -Enabled $false -IsKickstart
Sets SELinux to 'permissive' in the Kickstart configuration
PARAMETERS
-Enabled
Is the OS's Anti Malware solution enabled or not.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IsAutoYast
Indicates that this setting is placed in an AutoYAST file
Type: SwitchParameter
Parameter Sets: Yast
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-IsCloudInit
Indicates that this setting is placed in a cloudinit file
Type: SwitchParameter
Parameter Sets: CloudInit
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IsKickstart
Indicates that this setting is placed in a Kickstart file
Type: SwitchParameter
Parameter Sets: Kickstart
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.