Sha256: 759cb8902432155eb3fc4b20ce443e37f210a075e4c18b56a842b54d4f3458e3

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

function FindIISWebsite 
{
    param($name)
    Import-Module WebAdministration

	Try {
		Get-Item "IIS:\Sites\$name" -Erroraction silentlycontinue
	}
	Catch [System.IO.FileNotFoundException] {
		Get-Item "IIS:\Sites\$name" -Erroraction silentlycontinue
	}
}

function FindIISAppPool
{
    param($name)
    import-module WebAdministration
    Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta23 lib/specinfra/backend/powershell/support/find_iis_component.ps1
specinfra-2.0.0.beta22 lib/specinfra/backend/powershell/support/find_iis_component.ps1