powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-WebAppPool



NAME
Remove-WebAppPool

SYNOPSIS
Removes an IIS application pool.

SYNTAX
Remove-WebAppPool [-Name] [-WarningAction ] [-WarningVariable ] [-WhatIf] [-Conf
irm] []


DESCRIPTION
Removes an IIS application pool.


PARAMETERS
-Name
The name of the application pool to be removed.

Required? true
Position? 1
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: Removing an Application Pool --------------

C:\PS>New-WebAppPool MyNewAppPool
"Sleep for 5 seconds before AppPool gets removed"; Sleep 5
Remove-WebAppPool MyNewAppPool


This example demonstrates creating a new application pool and then removing it after waiting 5 seconds.






RELATED LINKS