---
title: "Sign Binary"
---
Signs .exe or .dll files using an installed code signing certificate.
Sign-Exe(
SubjectName: <text>,
[TimestampServer: <text>],
[ContentDescription: <text>],
[ContentUrl: <text>],
Include: <@(text)>,
[Exclude: <@(text)>],
[SignToolPath: <text>],
[SourceDirectory: <text>]
);
This operation may be prefixed with Windows::
, although this is a built-in namespace and isn't really necessary.
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
☆ Subject | text | SubjectName | The subject name of the certificate. This is used to identify the certificate. This argument is required. |
Timestamp server | text | TimestampServer | This server will be used to add a timestamp to the signature. |
Description | text | ContentDescription | The content description that will be included with the signature. |
URL | text | ContentUrl | The content URL that will be included with the signature. |
☆ Include (default) | @(text) | Include | See KB#1119 to learn more about masking syntax. This argument is required. |
Exclude | @(text) | Exclude | See KB#1119 to learn more about masking syntax. |
signtool.exe path | text | SignToolPath | The full path of signtool.exe. |
Directory | text | SourceDirectory |