.. / MSFT_NetFirewallRule

Represents a Windows firewall rule


Functions:
Type:
Toolsets:

Manage

Enable firewall rule

$fwrule = Get-CimInstance -Namespace ROOT\StandardCimv2 -ClassName MSFT_NetFirewallRule -Filter 'DisplayName="Remote Desktop - Shadow (TCP-In)"' -CimSession $s
$fwrule
$fwrule | Invoke-CimMethod -MethodName Enable

Comments



Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)