Auf Englisch lesen Bearbeiten

Freigeben über


Get-WebURL

Gets information about the URL associated with the specified Web site.

Syntax

PowerShell
Get-WebURL
   [[-PSPath] <String[]>]
   [-Accept <String>]
   [-ResponseHeaders]
   [-Content]
   [<CommonParameters>]
PowerShell
Get-WebURL
   [[-Url] <Uri[]>]
   [-Accept <String>]
   [-ResponseHeaders]
   [-Content]
   [<CommonParameters>]

Description

Gets information about the URL associated with the specified Web site.

Examples

-------------- EXAMPLE 1: Request the Default Web Site --------------

PowerShell
IIS:\>Get-WebURL 'IIS:\Sites\Default Web Site'

Returns data about the Default Web Site.

ResponseUri Contents


http://localhost/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN".

Parameters

-Accept

An HTTP Accept header.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Content

The content returned by the request.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PSPath

An IIS configuration path to the site for which information is returned.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ResponseHeaders

The HTTP Response headers.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Url

The URL for which information is retrieved.

Type:Uri[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False