---
title: "Stop Site"
---
Stops an IIS Site.
IIS::Stop-Site(
[WaitForStoppedStatus: <true/false>],
Name: <text>
);
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
Wait for stopped status | true/false | WaitForStoppedStatus | |
☆ Site (default) | text | Name | The name of the IIS site to operate on. This argument is required. |
# stops the BuildMaster web site
IIS::Stop-Site BuildMaster;
# starts the BuildMaster web site
IIS::Start-Site BuildMaster;