Skip to content

What is RDPSIGN Windows command?

The Windows rdpsign command is used to digitally sign Remote Desktop Protocol (.rdp) files, ensuring secure connections between devices.

Terminal window
rdpsign /sha1 {SHA1 thumbprint} /n {file name} [/s {storename}] [/v] [/q]
OptionDescription
/sha1Specifies the SHA1 thumbprint of the signing cert.
/nSpecifies the file to sign.
/sSpecifies the certificate store containing the cert.
/vEnables verbose mode.
/qQuiet mode, suppresses all output.
ParameterDescription
{SHA1 thumbprint}The SHA1 thumbprint of the signing certificate.
{file name}The file to be signed.
{storename}The certificate store where the cert is located.
Terminal window
rdpsign sign /sha256 /as /v path\to\rdpfile.rdp

This command signs an RDP file using a SHA256 hash algorithm with an autogenerated key and displays verbose output.

Terminal window
rdpsign verify /v path\to\signedfile.rdp

Verify the signature of the signed RDP file and display verbose output.

Terminal window
rdpsign remove /v path\to\signedfile.rdp

Removes the signature from the specified RDP file and displays verbose output.

Sign an RDP file using a specific certificate

Section titled “Sign an RDP file using a specific certificate”
Terminal window
rdpsign sign /as /sha256 /v /v cert thumbprint path\to\rdpfile.rdp

Signs an RDP file with a specified certificate (by its thumbprint) using the SHA256 hash algorithm and displays verbose output.

List all certificates in the certificate store

Section titled “List all certificates in the certificate store”
Terminal window
rdpsign listcerts

Displays a list of all certificates stored in the certificate store that can be used for signing RDP files.

To use the rdpsign command in CMD, execute the following command:

Terminal window
rdpsign -s <file>

What is the purpose of the rdpsign command in Windows?

Section titled “What is the purpose of the rdpsign command in Windows?”

The rdpsign command in Windows is used to digitally sign Remote Desktop Protocol (RDP) files for security and integrity verification.

How can I view help information for rdpsign in CMD?

Section titled “How can I view help information for rdpsign in CMD?”

To view help information for the rdpsign command in CMD, use the following command:

Terminal window
rdpsign /?

What are some common options used with the rdpsign command in Windows?

Section titled “What are some common options used with the rdpsign command in Windows?”

Some common options used with the rdpsign command in Windows include:

  • -s: Sign an RDP file.
  • -n: Specify a certificate subject name to use for signing.
  • -c: Specify a certificate thumbprint to use for signing.

How can I sign an RDP file using a specific certificate with rdpsign?

Section titled “How can I sign an RDP file using a specific certificate with rdpsign?”

To sign an RDP file using a specific certificate, you can use the following command:

Terminal window
rdpsign -s Example.rdp -n "CertificateName"

Is it possible to verify the signature of an RDP file using rdpsign?

Section titled “Is it possible to verify the signature of an RDP file using rdpsign?”

Yes, you can verify the signature of an RDP file using rdpsign by executing the following command:

Terminal window
rdpsign -v Example.rdp

Can I timestamp the signature of an RDP file using rdpsign?

Section titled “Can I timestamp the signature of an RDP file using rdpsign?”

Yes, you can timestamp the signature of an RDP file using rdpsign by including the -t option in the command.

How can I remove the signature from an RDP file using rdpsign?

Section titled “How can I remove the signature from an RDP file using rdpsign?”

To remove the signature from an RDP file using rdpsign, you can execute the following command:

Terminal window
rdpsign -r Example.rdp
  • Digitally sign Remote Desktop Protocol (RDP) files
  • Verify the digital signature of RDP files