Get-WebSitesOwnerCertificate

Gets information about website certificate ownership.

Syntax

Get-WebSitesOwnerCertificate
   [[-OwnerName] <String>]
   [-ConnectionString <String>]
   [<CommonParameters>]

Description

The Get-WebSitesOwnerCertificate cmdlet returns information about website certificate ownership. Used without any parameters, Get-WebSitesOwnerCertificate returns certificate ownership information for all your websites. Alternatively, you can use the OwnerName parameter to limit the returned data to certificates owned by the specified user.

When using Get-WebSitesOwnerCertificate you might see owner names similar to this:

Subscription01+DefaultWebSpace

This is a calculated name consisting of a website subscription name (Subscription01) and a web space (DefaultWebSpace). Calculated names are employed if a certificate is not explicitly assigned an owner name. If you do not assign an owner then the system will derive a calculated name and automatically set the OwnerName property to the calculated name.

Examples

Example 1: Get owner certificates

PS C:\> Get-WebSitesOwnerCertificates -OwnerName "Subscription01+DefaultWebSpace"

This command returns information for all website certificates with the owner Subscription01+DefaultWebSpace. In this case, that means certificates associated with the website subscription Subscription01 that were not explicitly assigned an owner.

Parameters

-ConnectionString

Specifies a connection string for a hosting database. Connection strings contain information about a data source and how to connect to it; this information includes such things as the server and database name, and the name and password of the user account making the connection. For example:

-ConnectionString "Server=tcp:contosodb.database.windows.net;Database=Personel;User ID=admin@contoso.com;Password=p@ssw0rd;Trusted_Connection=False;Encrypt=True;"

If you do not specify this parameter Get-WebSitesOwnerCertificate automatically connects to the default instance of the hosting database.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-OwnerName

Specifies the name of a certificate owner. For example:

-OwnerName "PattiF"

When this parameter is used, Get-WebSitesOwnerCertificate returns information about certificates owned by that user.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False