Restart-EaiIISOnServers

Module: Exchange_AddIn
Applies to: Any Windows Server running IIS on premises.

Restart-EaiIISOnServers

SYNOPSIS

Restart IIS on servers.

SYNTAX

Restart-EaiIISOnServers [-Computer] <Object> [<CommonParameters>]

DESCRIPTION

Primarily designed to be used on Exchange servers, if IIS needs a restart, this function can be used on any servers running IIS.
Load the parameter with a sinlge server or multiple servers wanting to process, then the invoke-command creates a remote connection to restart the IIS service.

EXAMPLES

EXAMPLE 1

Restart-EaiIISOnServers -Computer PC1,PC2,PC3,PC4

This will restart IIS on the following computers: PC1, PC2, PC3, PC4

EXAMPLE 2

Restart-EaiIISOnServers -Computer DC1

This will restart IIS on a single computer: DC1

PARAMETERS

-Computer

Enter a single server or multiple server names, separated by commas, to restart IIS on the target computer(s).

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Enter a single name or multiple names separated by commas to restart IIS on servers.

OUTPUTS

NOTES

Amazon Affiliate

As you make purchases from Amazon consider clicking my link first, then purchase items as you normally would. This helps support my blogging efforts, which is no cost to you. Simple click the Amazon link and complete your ordinary shopping tasks. Thank you.

Disclosure: As an Amazon Associate, I earn a small commission from qualifying purchases made through the links in this post, at no extra cost to you. This helps support the blog!