We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 155277c commit 0d95523Copy full SHA for 0d95523
Modules/DSCPullServerWeb/DSCResources/DscPullServerWeb/DscPullServerWeb.psm1
@@ -68,7 +68,7 @@ function Get-TargetResource
68
69
# Get Website and the full path for web.config file
70
$websiteItem = Get-Item -Path "IIS:\Sites\$EndpointName"
71
- $webConfigPath = Join-Path -Path $website.physicalPath -ChildPath 'web.config'
+ $webConfigPath = Get-Website -Name $EndpointName | Select-Object -ExpandProperty PhysicalPath | Join-Path -ChildPath 'web.config'
72
73
# Get the IIS port from the binding information and the physical path
74
$PhysicalPath = $websiteItem.physicalPath
0 commit comments