Change the friendlyname of a certificate

How can you change the friendlyname of a certificate with PowerShell? Easy.
First we set the location.

Set-Location cert:
view raw SetLocation.ps1 hosted with ❤ by GitHub

Now select where the certificate is stored.

cd .\\LocalMachine\My

Look at your certificates and select the one you want to change.

Get-ChildItem
001.png

Copy the Thumbprint, in my example I’m using a variable. Also provide your friendlyname.

$Thumbprint = xxx # Provide Thumbprint of cert
$cert = gci $Thumbprint
$cert.FriendlyName = "YourFriendlyName"

And that’s it. We changed the friendlyname.

Get All Hubsites in SharePoint Online

Restore files in SharePoint and Teams

Restore files in SharePoint and Teams