Remove-WebConfigurationLock
Removes a lock on configuration settings.
Syntax
Remove-WebConfigurationLock
[-Force]
[-Location <String[]>]
[-Filter] <String[]>
[[-PSPath] <String[]>]
[-WhatIf]
[-Confirm]
[<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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Filter
Specifies an XPath filter expression.
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PSPath
Specifies an IIS configuration path to the location.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |