Remove-WebConfigurationLock

Removes a lock on configuration settings.

Syntax

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

Description

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

Examples

-------------- EXAMPLE 1: Add and remove configuration locks --------------

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

This example demonstrates how to add and remove configuration locks.

Required Parameters

-Filter

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

Specifies that the user is not be prompted for confirmation.

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

Location of the configuration from which the lock is removed.

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

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