Get-WebURL
Syntax
Get-WebURL
[[-PSPath] <String[]>]
[-Accept <String>]
[-ResponseHeaders]
[-Content]
[<CommonParameters>]
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.
Optional Parameters
Specifies an HTTP Accept header.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The content returned by the request.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies an IIS configuration path to the site for which this cmdlet returns information.
| Type: | String[] |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName, ByValue) |
| Accept wildcard characters: | False |
The HTTP Response headers.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies the URL for which information is retrieved.
| Type: | Uri[] |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True (ByPropertyName, ByValue) |
| Accept wildcard characters: | False |