Represents a Windows firewall rule
Functions: | |
Type: | |
Toolsets: |
$fwrule = Get-CimInstance -Namespace ROOT\StandardCimv2 -ClassName MSFT_NetFirewallRule -Filter 'DisplayName="Remote Desktop - Shadow (TCP-In)"' -CimSession $s
$fwrule
$fwrule | Invoke-CimMethod -MethodName Enable
$s
using New-CimSession
ROOT\StandardCimv2