ps/Modules/Alkami.PowerShell.ServerManagement/Public/Disable-WindowsFirewall.ps1

20 lines
372 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
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)
}
}