Get-IISSite
Letzte Aktualisierung: August 2015
Get-IISSite
Gets configuration information for an IIS Web site.
Syntax
Parameter Set: Default
Get-IISSite [[-Name] <String[]> ] [-InformationAction <ActionPreference> {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend} ] [-InformationVariable <String> ] [ <CommonParameters>]
Detaillierte Beschreibung
The Get-IISSite cmdlet gets information about Internet Information Services (IIS) web sites and their current status and other key information. If you a request a specific site or a comma delimited list of sites, only those whose names are passed as an argument are returned. Otherwise all the websites are returned.
Parameter
-InformationAction<ActionPreference>
Specifies how this cmdlet responds to an information event. The acceptable values for this parameter are:
-- SilentlyContinue
-- Stop
-- Continue
-- Inquire
-- Ignore
-- Suspend
Aliase |
infa |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-InformationVariable<String>
Specifies a variable in which to store an information event message.
Aliase |
iv |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Name<String[]>
Specifies the name of the IIS website to get configuration information. If this parameter is not used, all sites are returned.
Aliase |
none |
Erforderlich? |
false |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue,ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
- String, array of string
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
- Microsoft.Web.Administration.Site
Beispiele
Example 1: Get information about an IIS website
This command gets the configuration information for the Default Web Site.
PS C:\> Get-IISSite "Default Web Site"
Example 2: Get information about all IIS websites
This command gets all configuration information about all IIS websites
PS C:\> Get-IISSite
Example 3: Get an attribute for an IIS website
This command gets the ServerAutoStart attribute for the IIS Default Web Site.
PS C:\> $Site = Get-IISSite "Default Web Site"
PS C:\> $Site.Attributes["ServerAutoStart"]