Find out if Front Page Server Extensions(FPSE) is enabled on IIS sites

azure powershell fpse 5 years, 10 months ago
Import-Module WebAdministration $owsadmPath = "%ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\50\bin" $hash = @{} Get-website |ForEach-Object { $ports= New-Object System.Collections.ArrayList $name= $_.name #$name Get-WebBinding -Name $_.Name | ForEach-Object{ $temp = $_.bindingInformation.split(":")[1] $ext = &'C:\Program Files (x86)\Common Files\Microsoft Shared\Web Server Extensions\50\bin\owsadm.exe' -o check -p $temp IF(($ext -match "completed") -ne $false){$fpse = "FPSE enabled"}else{$fpse = "FPSE not enabled"} $fpse $ports.add($fpse) |Out-Null } #$ports $hash.($name) = $ports } $hash
1847
Posted By