Modifier

Partager via


Get-WebConfigurationLock

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.

Parameters

-Filter

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

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

-Location

Specifies the location of the IIS configuration setting.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PSPath

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

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