< Back

Restart-IISApplicationPool

Mon Jan 13, 2020 6:13 am

NAME Restart-IISApplicationPool



SYNOPSIS

Restart an application pool.





SYNTAX

Restart-IISApplicationPool [[-ComputerName] <String[]>] [-AppPool] <String[]> [<CommonParameters>]





DESCRIPTION

The Restart-IISApplicationPool function will restart one or more application pools on the local or a remote server

running IIS.





PARAMETERS

-ComputerName <String[]>

The name of the remote server. Supports multiple servers. The default is the local server.



Required? false

Position? 0

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-AppPool <String[]>

The name of the application pool to recycle. Supporte multiple pools.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Get-MailboxServer |

Sort-Object -Property Name | Select-Object -First 1 |

Restart-IISApplicationPool -AppPool

"MSExchangePowershellFrontendAppPool","MSExchangePowershellAppPool","MSExchangeSyncAppPool" -Verbose



This command will recycle the application pools "MSExchangePowershellFrontendAppPool",

"MSExchangePowershellAppPool" and "MSExchangeSyncAppPool" on all mailbox servers









RELATED LINKS