CmdID / PowerShell / Cmdlets / Add
Add-WebConfigurationLock
Locks an IIS configuration section or element. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-FilterSpecifies an XPath filter expression.-ForceForces the configuration lock.-LocationSpecifies the location at which this cmdlet applies the configuration lock.-PSPathSpecifies the configuration path.-PassthruPasses an object that represents the configuration lock to the pipeline.-TypeSpecifies the type of configuration lock that this cmdlet adds.-WhatIf, -wiShows what would happen if the cmdlet runs.