function Disable-WindowsFirewall { <# .SYNOPSIS Disables the Windows Firewall #> [CmdletBinding()] param() $logLead = (Get-LogLeadName); Write-Output "$logLead : Disabling the Windows Firewall" $result = netsh firewall set opmode disable if (!([String]::IsNullOrEmpty($result))) { Write-Verbose ("$logLead : {0}" -f $result) } }