Remove-WebConfigurationLock

Removes a lock on configuration settings.

Syntax

Remove-WebConfigurationLock
      [-Filter] <String[]>
      [[-PSPath] <String[]>]
      [-Confirm]
      [-Force]
      [-Location <String[]>]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-WebConfigurationLock cmdlet removes a lock on configuration settings that was created by using the Add-WebConfigurationLock cmdlet.

Examples

Example 1: Add and remove configuration locks

IIS:\> Add-WebConfigurationLock -Type "general" -Filter "//asp" 
IIS:\> Remove-WebConfigurationLock -Filter "//asp" 
IIS:\> Add-WebConfigurationLock -Type "inclusive" -Filter "//asp/@lcid" 
IIS:\> Remove-WebConfigurationLock -Filter "//asp/@lcid" 
IIS:\> Add-WebConfigurationLock -Type "exclusive" -Filter "//asp/@lcid"

This example demonstrates how to add and remove configuration locks.

Required Parameters

-Filter

Specifies an XPath filter expression.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

Specifies the location of the configuration from which this cmdlet removes the lock.

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

Specifies an IIS configuration path to the location.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False