cEPRSEnableFirewallInboundConnections.psm1

enum Ensure
{
   Absent
   Present

}

[DscResource()]
class cEPRSEnableFirewallInboundConnections
{

    [DscProperty(Key)] [String] $Ensure

  [cEPRSEnableFirewallInboundConnections] Get()
   {
   
       $Ensure = "Present"

       return $Ensure
   
   }
   
  [bool] Test()
   {
       $result = $false

       return $result
   }  

  [void] Set()
   {

     Write-Verbose "set function exec" -Verbose

     Write-Verbose "Enabling inbound connections to allow for windows firewall" -Verbose

     netsh advfirewall set currentprofile firewallpolicy "allowinbound,allowoutbound"
                   
     Write-Verbose "set function execution ends" -Verbose
        
   }



}