powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-WebConfigurationProperty



NAME
Remove-WebConfigurationProperty

SYNOPSIS
Removes an IIS configuration property.

SYNTAX
Remove-WebConfigurationProperty -Name [-AtElement ] [-AtIndex ] [-AtName ] [-For
ce] [-Location ] [-Filter] [[-PSPath] ] [-WarningAction ] [-Warnin
gVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Removes an IIS configuration property.


PARAMETERS
-Name
The name of the configuration property to remove.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-AtElement
The element at which the configuration property is removed.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-AtIndex
The index at which the configuration property is removed.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-AtName
The name of the configuration property at which the property is removed.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Force
When the Force parameter is used, it causes the configuration property to be removed from a level higher in the
configuration than a lock.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Location
The location of the configuration property. Location tags are usually used for configuration settings that need
to be more granular than per application or per virtual directory. Settings for particular files or directory
are an example. Location tags are also used is if a particular section is locked. If so the configuration syste
m has to use location tags in one of the parent configuration files.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Filter
Specifies the IIS configuration section or an XPath query that returns a configuration element.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-PSPath
Specifies the configuration path. This can be either an IIS configuration path (e.g. machine/webroot/apphost) o
r the IIS module path (e.g. 'IIS:\sites\Default Web Site').

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Describes what would happen if you executed the command without actually executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
Prompts you for confirmation before executing the command.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- EXAMPLE 1: Remove the first binding on a site. --------------

C:\PS>Remove-WebconfigurationProperty '/system.applicationHost/sites/site[@name="Default Web Site"]' -Name Bindings
.collection -AtIndex 0


Removes the first binding on the Default Web Site.






RELATED LINKS