Get-WebSitesConfig

Get-WebSitesConfig

Gets a configuration.

Syntax

Parameter Set: Default
Get-WebSitesConfig [-Type] {AppHostConfig | ConfigFile | DefaultAppHostConfig | RootWebConfig | DefaultRootWebConfig | RestAdmin | Global | Credential | Metering | Security | SecurityKey | CentralCertificate} [-PipelineVariable <String> ] [ <CommonParameters>]


 

Detailed Description

The Get-WebSitesConfig cmdlet gets the configuration for the specified type.

Parameters

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-Type<WebSitesConfigTypes>

Specifies the type of configuration. Valid values are:

-- AppHostConfig

-- ConfigFile

-- DefaultAppHostConfig

-- RootWebConfig

-- DefaultRootWebConfig

-- RestAdmin

-- Global

-- Credential

-- Metering

-- Security

-- SecurityKey

-- CredentialCertificate

The acceptable values for this parameter are:

 

AppHostConfig

 

ConfigFile

 

DefaultAppHostConfig

 

RootWebConfig

 

DefaultRootWebConfig

 

RestAdmin

 

Global

 

Credential

 

Metering

 

Security

 

SecurityKey

 

CentralCertificate

 

 

 

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Get the configuration for a site

This command gets the AppHostConfig configuration type for Site01.

PS C:\> Get-WebSitesConfig -Type AppHostConfig -SiteName "Site01"

 

Related topics

New-WebSitesConfig

Set-WebSitesConfig

Remove-WebSitesConfig