CyberPolice

An epic windows securing and hardening script
Log | Files | Refs | README

LogFirewall.ps1 (490B)


      1 Write-Host "CYBER POLICE [Covert Ops] are now going to log firewall rules..." -ForegroundColor Magenta
      2 $thispath = Split-Path -parent $MyInvocation.MyCommand.Definition
      3 $path = Split-Path -parent $thispath
      4 $output = Get-content $path/CyberPoliceOutput/path.txt
      5 get-netfirewallrule | select-object name, group, action, enabled, profile | export-csv $output/logs/FirewallLog.csv
      6 Write-Host "The CYBER POLICE [Covert Ops]: End of logging. Check logs folder in output!" -ForegroundColor Magenta