Get Sign Tool Path
Last Modified: February 25, 2024 18:18 CEST

Get-SignToolPath #

SYNOPSIS #

Determines the path to Windows signtool.exe

SYNTAX #

Get-SignToolPath [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION #

The function returns the path to the signtool.exe under Windows 10 and Windows 11. The path also contains the signtool.exe itself. SignTool is part of the Windows SDK. If there are multiple Windows SDK installations, the newest SignTool will be determined.

EXAMPLES #

Example 1:Gets the path to the current signtool.exe #

PS C:\> Get-SignToolPath
# Output 

C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe

The result contains the path incl. the program name. The path depends on the version of the Windows SDK.

PARAMETERS #

CommonParameters #

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS #

None #

OUTPUTS #

System.Object #

NOTES #

Approve-Signature

Install-SignTool