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

Synopsis

Starts an application pool or a site.

Syntax

Start-WebItem [-Passthru] [-Protocol <String>] [[-PSPath] <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

Use Start-WebItem to start an application pool or a Web site.

Parameters

-Passthru [<SwitchParameter>]

Passes an object representing the web item to the pipeline

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

-Protocol [<String>]

The protocol to start.

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

-PSPath [<String[]>]

The path to the site or application pool to start.

Required?   false
Position?   2
Default value?  
Accept pipeline input?   true (ByPropertyName)
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

PSObject

Return Type

PSObject

Notes

Examples

EXAMPLE 1: Starting a Web Site

PS> Start-WebItem 'IIS:\Sites\Default Web Site'

Starts the site named "Default Web Site".