Skip to content

Commit

Permalink
xDSCWebService: removed formatting for firewall rule name
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Meckel committed May 12, 2019
1 parent 25c54c6 commit 92c2757
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DSCResources/MSFT_xDSCWebService/Firewall.psm1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Name and description for the Firewall rules. Used in multiple locations
New-Variable -Name fireWallRuleDisplayName -Value 'DSCPullServer_IIS_Port' -Option ReadOnly -Scope Script -Force
New-Variable -Name FireWallRuleDisplayName -Value 'DSCPullServer_IIS_Port' -Option ReadOnly -Scope Script -Force
New-Variable -Name netsh -Value "$env:windir\system32\netsh.exe" -Option ReadOnly -Scope Script -Force
<#
.SYNOPSIS
Expand All @@ -22,7 +22,7 @@ function Add-PullServerFirewallConfiguration
Write-Verbose -Message 'Disable Inbound Firewall Notification'
$null = & $script:netsh advfirewall set currentprofile settings inboundusernotification disable

$ruleName = $FireWallRuleDisplayName -f $port
$ruleName = $FireWallRuleDisplayName

# Remove all existing rules with that displayName
$null = & $script:netsh advfirewall firewall delete rule name=$ruleName protocol=tcp localport=$Port
Expand Down

0 comments on commit 92c2757

Please sign in to comment.