Get-WebSitesHostName

Get-WebSitesHostName

Gets the host name for a tenant web site.

Syntax

Parameter Set: Default
Get-WebSitesHostName [[-SiteName] <String> ] [-ConnectionString <String> ] [-OwnerName <String> ] [-PipelineVariable <String> ] [-WorkerName <String> ] [ <CommonParameters>]


 

Detailed Description

The Get-WebSitesHostName parameter gets the host name for a tenant web site.

Parameters

-ConnectionString<String>

Specifies a connecting string to a hosting database. If this parameter is not specified, the default instance of the hosting database is used.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-OwnerName<String>

Specifies the owner of a site.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-PipelineVariable<String>

Specifies a variable to be used with the pipeline operator.

 

Aliases

pv

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

 

-SiteName<String>

Specifies the name of a site.

 

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

 

-WorkerName<String>

Specifies the name of the worker that the site is on.

 

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (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: Get the hostname for a tenant site

This command gets the host names for the web site named Site01.

PS C:\> Get-WebSitesHostName -SiteName "Site01"

 

Related topics

New-WebSitesHostName

Remove-WebSitesHostName