Get-WebSitesSitePolicy

Get-WebSitesSitePolicy

Gets the policy for a web site.

Syntax

Parameter Set: Default
Get-WebSitesSitePolicy [[-PlanName] <String> ] [[-ComputeMode] {Shared | Dedicated} ] [[-SiteMode] <String> ] [-ConnectionString <String> ] [-PipelineVariable <String> ] [ <CommonParameters>]


 

Detailed Description

The Get-WebSitesSitePolicy gets the policy for a web site.

Parameters

-ComputeMode<ComputeMode>

Specifies the compute mode. Valid values are:

-- Shared

-- Dedicated

To use this parameter, you must also provide a value for the PlanName parameter.

The acceptable values for this parameter are:

 

Shared

 

Dedicated

 

 

 

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-ConnectionString<String>

Specifies a connecting string to a hosting database. If this parameter is not specified, the default instance of the hosting database is used.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-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

 

-PlanName<String>

Specifies the name of the plan that the policy affects. You must specifiy a value for this parameter if you want to use the ComputeMode and SiteMode parameters.

 

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-SiteMode<String>

Specifies the site mode. Valid values are:

-- Basic

-- Limited

To use this parameter, you must also provide a value for the PlanName parameter.

 

Aliases

none

Required?

false

Position?

3

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 all web site policies

This command gets all web site policies and displays information about each policy to the user.

PS C:\> Get-WebSitesSitePolicy

 

Related topics

New-WebSitesSitePolicy

Set-WebSitesSitePolicy

Remove-WebSitesSitePolicy