Get-WebConfigurationLock
Gets the lock status of an IIS configuration location.
Syntax
Default (Default)
Get-WebConfigurationLock
[-Location <String[]>]
[-Filter] <String[]>
[[-PSPath] <String[]>]
[<CommonParameters>]
Description
The Get-WebConfigurationLock cmdlet gets the locking status of the specified Internet Information Services (IIS) configuration location.
Examples
Example 1: Get the locking status of an IIS configuration
IIS:\> Get-WebConfigurationLock -Filter "//asp" -PSPath "IIS:\"
This command returns the locking status of the asp IIS configuration section.
Parameters
-Filter
Specifies an XPath filter expression. This expression can be in XPath format.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-Location
Specifies the location of the IIS configuration setting.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-PSPath
Specifies an IIS configuration path in the format computer name/webroot/apphost.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.