azure
powershell
fpse
6 years, 6 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
0 Comments
Please Login to Comment Here