![]() NAME Remove-WebConfigurationLocation SYNOPSIS Removes an IIS configuration location. SYNTAX Remove-WebConfigurationLocation [[-Name] DESCRIPTION Removes an IIS configuration location. PARAMETERS -Name The name of the configuration location to remove. Required? false Position? 3 Default value Accept pipeline input? true (ByPropertyName) Accept wildcard characters? false -Recurse Specifies whether to also remove locations included within hierarchy of the specified location. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -PSPath An IIS configuration path. 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: Adding and removing a configuration location -------------- C:\PS>Set-WebConfigurationProperty -PSPath "IIS:\" -Filter //windowsAuthentication -Location "Default Web Site/mypa ge.htm" -Name enabled -Value true Get-WebConfigurationLocation -Name "Default Web Site" -PSPath "IIS:\" "Sleep 5 seconds before removing the configuration location"; Sleep 5 Remove-WebConfigurationLocation -Name "Default Web Site/my*" Get-WebConfigurationLocation -Name "Default Web Site" -PSPath "IIS:\" This example adds and then removes a configuration location. RELATED LINKS |