Category Archives: Firewall

Controlling Firewall Rules

I decide that for this module I wanted some functions that control specific rule that I could be working with often e.g. Enable/Disable WMI rules and then I want a generic function for everything else. Lets start with some specifics. … Continue reading

Posted in COM, Firewall, PowerShell V2 | Leave a comment

Firewall rules (OK)

The really important thing about our firewall is the rules that are configured. function get-rule { [CmdletBinding()] param () BEGIN{}#begin PROCESS{ $fw = New-Object -ComObject HNetCfg.FwPolicy2 $fw.Rules | foreach { $profiles = @() $ruleprofile = $_.Profiles @(1,2,4, 1073741824) | foreach … Continue reading

Posted in COM, Firewall, PowerShell V2 | Leave a comment

Windows firewall

I normally leave the Windows firewall enabled in my test environment. It ensures I don’t forget it when testing. My recent session for the TechEd:Australia PowerShell conference involved me disabling various firewall rules on the subject machine to set up … Continue reading

Posted in COM, Firewall, PowerShell V2 | 2 Comments