Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Starts an application pool.

Syntax

Start-WebAppPool [[-Name] <String>] [-Passthru] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

Starts the specified application pool.

Parameters

-Name [<String>]

The name of the application pool to start.

Required?   false
Position?   1
Default value?  
Accept pipeline input?   true (ByPropertyName)
Accept wildcard characters?   false

-Passthru [<SwitchParameter>]

Passes an object representing the Application Pool to the pipeline

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-WarningAction [<ActionPreference>]

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-WarningVariable [<String>]

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

EXAMPLE 1: Starting an Application Pool

PS> Start-WebAppPool -Name "DefaultAppPool"

Starts the application pool named "DefaultAppPool".

EXAMPLE 2: Starting stopped Application Pools

PS> Get-ChildItem IIS:\AppPools | where {$_.state -eq "Started"} | Start-WebAppPool

Starts the application pools that are currently stopped.