firewall on hearthstone is enabled in the begining
PS C:\Windows\System32> get-NetFirewallRule | where DisplayName -match hearthstone
Name : TCP Query User{49D8D1A3-5E67-41A8-A5A3-2D4F05355A57}C:\program files
(x86)\hearthstone\hearthstone.exe
DisplayName : hearthstone
Description : hearthstone
DisplayGroup :
Group :
Enabled : True
Profile : Public
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : DeferToUser
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local
Name : UDP Query User{BDC29526-D763-4132-83F1-F81470C54F8B}C:\program files
(x86)\hearthstone\hearthstone.exe
DisplayName : hearthstone
Description : hearthstone
DisplayGroup :
Group :
Enabled : True
Profile : Public
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : DeferToUser
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local
firewall on hearthstone is disabled
#disable firewall on a program
PS C:\Windows\System32> get-NetFirewallRule | where DisplayName -match hearthstone | Disable-NetFirewallRule
#re-enable firewall on a program
PS C:\Windows\System32> get-NetFirewallRule | where DisplayName -match hearthstone | enable-NetFirewallRule
#block a program
Set-NetFirewallRule -DisplayName hearthstone -Action block
hearthstone is blocked
#allow a program through
Set-NetFirewallRule -DisplayName hearthstone -Action allow
reference:
No comments:
Post a Comment