Get-Web Configuration Lock

Gets the lock status of an IIS configuration location.

Syntax

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.

Required Parameters

-Filter

Specifies an XPath filter expression. This expression can be in XPath format.

Type: String[]
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Optional Parameters

-Location

Specifies the location of the IIS configuration setting.

Type: String[]
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
-PSPath

Specifies an IIS configuration path in the format computer name/webroot/apphost.

Type: String[]
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False