Export (0) Print
Expand All
Expand Minimize

Get-WebURL

Windows Server 2012 R2 and Windows 8.1

Updated: February 20, 2014

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-WebURL

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

Syntax

Parameter Set: InputPSPath
Get-WebURL [[-PSPath] <String[]> ] [-Accept <String> ] [-Content] [-ResponseHeaders] [ <CommonParameters>]

Parameter Set: InputURL
Get-WebURL [[-Url] <Uri[]> ] [-Accept <String> ] [-Content] [-ResponseHeaders] [ <CommonParameters>]




Detailed Description

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

Parameters

-Accept<String>

An HTTP Accept header.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Content

The content returned by the request.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PSPath<String[]>

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


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-ResponseHeaders

The HTTP Response headers.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Url<Uri[]>

The URL for which information is retrieved.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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

Returns data about the Default Web Site.

ResponseUri Contents

----------- --------

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


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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft