How-to-simply...

Get Remote Desktop SHA1 certificate hash on Windows with PowerShell

  • 1 Get-ChildItem -Path 'Cert:\LocalMachine\Remote Desktop' | Where-Object { $_.Subject -like "*$hostname*" }
  • N Prints SHA1 hash, not SHA-2/SHA256. You can omit the Where-Object condition to list all Remote Desktop certificates.

References