github.com/cloudfoundry-incubator/windows-utilities-tests@v0.11.1-0.20230315194243-a2ce46b74d8a/assets/wuts-release/jobs/check_windowsdefender/templates/run.ps1.erb (about) 1 Import-Module $PSScriptRoot/../modules/CheckWindowsDefender.psd1 2 3 $Expected = [bool]$<%= p("check_windowsdefender.expected") %> 4 5 if ($Expected) { 6 $result = Assert-DefenderEnabled 7 } else { 8 $result = Assert-DefenderDisabled 9 } 10 11 if ($result) { 12 Exit 0 13 } 14 15 Exit 1