Skip to content

Instantly share code, notes, and snippets.

@ArwynFr
Last active February 1, 2025 01:49
Show Gist options
  • Select an option

  • Save ArwynFr/f212ad203ff657ad59e660137ccfc34c to your computer and use it in GitHub Desktop.

Select an option

Save ArwynFr/f212ad203ff657ad59e660137ccfc34c to your computer and use it in GitHub Desktop.
Update TSClient certificate

Update TSClient certificate

Commande pour changer le certificat présenté lors d’un accès MSTSC dans Windows 11 :

$RDPInstance = Get-CimInstance -ClassName Win32_TSGeneralSetting -Namespace ROOT\CIMV2\TerminalServices
Set-CimInstance -CimInstance $RDPInstance -Property @{ SSLCertificateSHA1Hash = $cert.Thumbprint } -PassThru
Note
le certificat doit être dans Cert:\LocalMachine\My
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment