Stop-Website
Stops an IIS website.
Syntax
Stop-Website
[[-Name] <String>]
[-Passthru]
[<CommonParameters>]
Description
The Stop-Website cmdlet stops the specified Internet Information Services (IIS) website.
Examples
Example 1: Stop a website
IIS:\> Stop-WebSite -Name "Default Web Site"
This command stops the site named Default Web Site.
Parameters
-Name
Specifies the name of the website that this cmdlet stops.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Passthru
Passes an object that represents the website to the pipeline.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for