Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Sign Binary

Signs .exe or .dll files using an installed code signing certificate.

Script usage:

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.

Arguments:

NameFormatScript UsageUsage 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. Default value is "http://timestamp.comodoca.com/".
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. Default value is "$SignToolPath".
Directory
text
SourceDirectory