Export (0) Print
Expand All
Expand Minimize

Get-WebURL

Published: February 29, 2012

Updated: August 15, 2012

Applies To: Windows Server 2012

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.

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