Public/Set-UnattendedAntiMalware.ps1
function Set-UnattendedAntiMalware { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [bool]$Enabled, [switch] $IsKickstart, [switch] $IsAutoYast ) if (-not $script:un) { Write-Error 'No unattended file imported. Please use Import-UnattendedFile first' return } if ($IsKickstart) { Set-UnattendedKickstartAntiMalware -Enabled $Enabled; return } if ($IsAutoYast) { Set-UnattendedYastAntiMalware -Enabled $Enabled; return } Set-UnattendedWindowsAntiMalware -Enabled $Enabled } |