powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-Website



NAME
Get-Website

SYNOPSIS
Gets an IIS Web site.

SYNTAX
Get-Website [[-Name] ] [-WarningAction ] [-WarningVariable ] []


DESCRIPTION
Gets an IIS Web site


PARAMETERS
-Name
The name of the Web site about which configuration information is returned.

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

-WarningAction


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

-WarningVariable


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


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- EXAMPLE 1: Get information about the Default Web Site --------------

C:\PS>Get-Website -Name "Default Web Site"


Returns the configuration information for the Default Web Site.


Name ID State Physical Path Bindings
---- -- ----- ------------- --------
Default Web Site 1 Started %SystemDrive%\inetpub\wwwroot http *:80:
net.tcp 808:*



RELATED LINKS