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.

Recycle App Pool

Modified on July 26, 2024

Recycles an application pool.

Script usage:

IIS::Recycle-AppPool(
	[WaitForStartedStatus: <true/false>],
	Name: <text>
);

Arguments:

NameFormatScript UsageUsage Notes
Wait for started status
true/false
WaitForStartedStatus
Default value is "True".
App pool (default)
text
Name
The name of the application pool to operate on. This argument is required.

Example:


# stops the BuildMaster application pool 
IIS::Stop-AppPool BuildMasterAppPool;

# starts the BuildMaster application pool 
IIS::Start-AppPool BuildMasterAppPool;

# recycles the BuildMaster application pool 
IIS::Recycle-AppPool BuildMasterAppPool;