20 lines
372 B
PowerShell
20 lines
372 B
PowerShell
|
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)
|
||
|
}
|
||
|
}
|
||
|
|