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>]
The Get-WebSitesSitePolicy gets the policy for a web site.
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 |
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 |
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 |
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 |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
This command gets all web site policies and displays information about each policy to the user.
PS C:\> Get-WebSitesSitePolicy