PowerShell Logo Small

Add-WebConfigurationLock



This is the built-in help made by Microsoft for the command 'Add-WebConfigurationLock', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Locks an IIS configuration section or element.

SYNTAX


Add-WebConfigurationLock [-Filter] <String[]> [[-PSPath] <String[]>] [-Force [<SwitchParameter>]] [-Location <String[]>] [-Passthru
[<SwitchParameter>]] -Type <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Locks an IIS configuration section, element, or attribute.



<

RELATED LINKS

Remove-WebConfigurationLock
Unkown



REMARKS

<

Examples


-------------- EXAMPLE 1: Adding and removing 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 inclusive and exclusive locks using a filter.