Rdpsign
Applies To: Windows Server 2008, Windows Server 2008 R2
Enables you to digitally sign a Remote Desktop Protocol (.rdp) file.
For examples of how to use this command, see Examples.
Note
In Windows Server 2008 R2, Terminal Services was renamed Remote Desktop Services. To find out what's new in this version, see What’s New in Remote Desktop Services on the Windows Server TechCenter.
Syntax
rdpsign /sha1 <hash> [/q | /v |] [/l] <file_name.rdp>
Parameters
Parameter | Description |
---|---|
/sha1 <hash> |
Specifies the thumbprint, which is the Secure Hash Algorithm 1 (SHA1) hash of the signing certificate that is included in the certificate store. |
/q |
Quiet mode. No output when the command succeeds and minimal output if the command fails. |
/v |
Verbose mode. Displays all warnings, messages, and status. |
/l |
Tests the signing and output results without actually replacing any of the input files. |
/? |
Displays help at the command prompt. |
Remarks
- The SHA1 certificate thumbprint should represent a trusted .rdp file publisher. To obtain the certificate thumbprint, open the Certificates snap-in, double-click the certificate that you want to use (either in the local computer's certificates store or in your personal certificates store), click the Details tab, and then in the Field list, click Thumbprint.
Note
When you copy the thumbprint for use with the Rdpsign.exe tool, you must remove any spaces.
You must specify the .rdp file (or files) to sign by using the full file name. Wildcard characters are not accepted.
The signed output files will overwrite the input files.
If any of the .rdp files cannot be read or written to, the tool will continue to the next file if multiple files are specified.
Examples
To sign an .rdp file that is named File1.rdp, navigate to the folder where you saved the .rdp file, and then type the following:
rdpsign /sha1 hash file1.rdp
Note
The hash value represents the SHA1 certificate thumbprint, without any spaces.
To test whether digital signing will succeed for an .rdp file without actually signing the file, type the following:
rdpsign /sha1 hash /l file1.rdp
To sign multiple .rdp files, separate the file names by using spaces. For example, to sign multiple .rdp files that are named File1.rdp, File2.rdp, and File3.rdp, type the following:
rdpsign /sha1 hash file1.rdp file2.rdp file3.rdp
See Also
Concepts
Command-Line Syntax Key
Remote Desktop Services (Terminal Services) Command Reference