Powershell win 10 Firewall rule returns error since today 2021-07-21

Since today 2021-07-21 my temp rule activated via powershell seems don't work anymore i receive the following error:

PS C:\WINDOWS\system32> New-NetFirewallRule -DisplayName "Block Outbound Port 80" -Direction Outbound -LocalPort 80 -Protocol TCP -Action Block
New-NetFirewallRule : The requested object could not be found.
At line:1 char:1
+ New-NetFirewallRule -DisplayName "Block Outbound Port 80" -Direction ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (MSFT_NetFirewallRule:root/standardcimv2/MSFT_NetFirewallRule) [New-NetFirewallRule], CimException + FullyQualifiedErrorId : MI RESULT 6,New-NetFirewallRule

This example is also mentioned into

looks like the final part trig error : -Action Block

As request in comment this is the output:

PS C:\WINDOWS\system32> Get-NetFirewallRule -DisplayName "Block Outbound Port 80"
Get-NetFirewallRule : No MSFT_NetFirewallRule objects found with property 'DisplayName' equal to 'Block Outbound Port 80'. Verify the value of the property and retry.
At line:1 char:1
+ Get-NetFirewallRule -DisplayName "Block Outbound Port 80"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Block Outbound Port 80:String) [Get-NetFirewallRule], CimJobException + FullyQualifiedErrorId : CmdletizationQuery_NotFound_DisplayName,Get-NetFirewallRule
3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like