Get-WebURL
Gets information about the URL associated with a website.
Syntax
InputPSPath (Default)
Get-WebURL
[[-PSPath] <String[]>]
[-Accept <String>]
[-ResponseHeaders]
[-Content]
[<CommonParameters>]
InputURL
Get-WebURL
[[-Url] <Uri[]>]
[-Accept <String>]
[-ResponseHeaders]
[-Content]
[<CommonParameters>]
Description
The Get-WebURL cmdlet gets information about the URL associated with the specified website.
Examples
Example 1: Request the default website
IIS:\> Get-WebURL -PSPath "IIS:\Sites\Default Web Site"
ResponseUri Contents
----------- --------
http://localhost/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN".
This command returns data about the default website.
Parameters
-Accept
Specifies an HTTP Accept header.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Content
The content returned by the request.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PSPath
Specifies an IIS configuration path to the site for which this cmdlet returns information.
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
InputPSPath
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
-ResponseHeaders
The HTTP Response headers.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Url
Specifies the URL for which information is retrieved.
Parameter properties
| Type: | Uri[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
InputURL
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.