powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-WebApplication



NAME
Remove-WebApplication

SYNOPSIS
Removes an IIS Web Application.

SYNTAX
Remove-WebApplication [-Site ] [-Name] [-WarningAction ] [-WarningVariable ng>] [-WhatIf] [-Confirm] []


DESCRIPTION
Removes an IIS Web Application.


PARAMETERS
-Site
The name of the site from which the application is to be removed.

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

-Name
The name of the application to be removed from the site.

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: Adding a web application and removing it --------------

C:\PS>New-WebApplication -Name TestApp -Site "Default Web Site" -PhysicalPath "$env:systemdrive\inetpub\TestApp"
"Sleep for 5 seconds before Web App is removed"; Sleep 5
Remove-WebApplication -Name TestApp -Site "Default Web Site"


This example demonstrates creating a Web application named "TestApp" on the default Web site. The application is th
en removed after 5 seconds.






RELATED LINKS