Get-WebURL
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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).
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
----------- --------
https://localhost/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN".
IIS:\>Get-WebURL 'IIS:\Sites\Default Web Site'