However when I try the command : New-NetFirewallRule -DisplayName “testing” -PolicyStore localhost , I get this error :
“New-NetFirewallRule : The network name cannot not found. At line:1 char:1 New-NetFirewallRule -DisplayName “testing” -PolicyStore localhost CategoryInfo : NotSpecified: (MSFT_NetFirewallRule:root/standardcimv2/MSFT_NetFirewallRule) [New-NetFir ewallRule], CimException FullyQualifiedErrorId : Windows System Error 67,New-NetFirewallRule”
Edit: Some times I get this error as well:
New-NetFirewallRule : Mutual Authentication failed. The server’s password is out of date
at the domain controller.
At line:1 char:1
- New-NetFirewallRule -PolicyStore localhost
- CategoryInfo : NotSpecified: (MSFT_NetFirewallRule:root/standardcimv2/MSF
T_NetFirewallRule) [New-NetFirewallRule], CimException - FullyQualifiedErrorId : Windows System Error 1397,New-NetFirewallRule