Gets information about website certificate ownership.


   [[-OwnerName] <String>]
   [-ConnectionString <String>]


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:


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.


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.

Optional Parameters


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 ";Database=Personel;User;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.

Default value:None
Accept pipeline input:False
Accept wildcard characters:False

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.

Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False