Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Stop Site

Modified on July 26, 2024

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
Default value is "True".
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;