FirewallProfile_ConfigurePrivateFirewallProfile_Config.ps1
<#PSScriptInfo .VERSION 1.0.0 .GUID 293c0473-a0bd-4ccd-82dd-086790598e73 .AUTHOR Microsoft Corporation .COMPANYNAME Microsoft Corporation .COPYRIGHT .TAGS DSCConfiguration .LICENSEURI https://github.com/PowerShell/NetworkingDsc/blob/master/LICENSE .PROJECTURI https://github.com/PowerShell/NetworkingDsc .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES .RELEASENOTES First version. .PRIVATEDATA 2016-Datacenter,2016-Datacenter-Server-Core #> #Requires -module NetworkingDsc <# .DESCRIPTION Configure the Private Firewall Profile. #> Configuration FirewallProfile_ConfigurePrivateFirewallProfile_Config { Import-DscResource -Module NetworkingDsc Node localhost { FirewallProfile ConfigurePrivateFirewallProfile { Name = 'Private' Enabled = 'True' DefaultInboundAction = 'Block' DefaultOutboundAction = 'Allow' AllowInboundRules = 'True' AllowLocalFirewallRules = 'False' AllowLocalIPsecRules = 'False' NotifyOnListen = 'True' LogFileName = '%systemroot%\system32\LogFiles\Firewall\pfirewall.log' LogMaxSizeKilobytes = 16384 LogAllowed = 'False' LogBlocked = 'True' LogIgnored = 'NotConfigured' } } } |