powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-Website



NAME
Remove-Website

SYNOPSIS
Removes an IIS Web site

SYNTAX
Remove-Website [-Name] [-WarningAction ] [-WarningVariable ] [-WhatIf] [-Confirm
] []


DESCRIPTION
Removes an IIS Web site.


PARAMETERS
-Name
The name of the Web site to remove.

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 a Web Site --------------

C:\PS>Remove-WebSite -Name TestSite


Removes the site named "TestSite" from the server.






RELATED LINKS