--- title: "Stop Site" ---
This is generated from the built in components of Otter 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your Otter instance to see exactly what operations are available.

Stops an IIS Site.

Script usage:

IIS::Stop-Site(
	[WaitForStoppedStatus: <true/false>],
	Name: <text>
);

Arguments:

NameFormatScript UsageUsage 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.

Example:


# stops the BuildMaster web site 
IIS::Stop-Site BuildMaster;

# starts the BuildMaster web site
IIS::Start-Site BuildMaster;