You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DimresetWindowsFirewallResAsDialogResult=MessageBox.Show("This will attempt to reset windows firewall to its default state. Confirm action?","Reset Windows Firewall",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)
DimcheckWindowsFirewallResAsDialogResult=MessageBox.Show("This will attempt to check current state of windows firewall. Confirm action?","Check Windows Firewall",MessageBoxButtons.YesNo,MessageBoxIcon.Information)
41
+
42
+
IfcheckWindowsFirewallRes=DialogResult.YesThen
43
+
Try
44
+
DimprocAsProcess=Create_Custom_CMD_Process()
45
+
46
+
proc.StartInfo.Arguments="/c netsh advfirewall show allprofiles state"
DimenableWinFirewallResAsDialogResult=MessageBox.Show("This will attempt to enable windows firewall. Confirm action?","Enable Windows Firewall",MessageBoxButtons.YesNo,MessageBoxIcon.Information)
56
+
57
+
proc.StartInfo.Arguments="/c netsh advfirewall set allprofiles state on"
0 commit comments