Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signtool Unexpected token 'sign'

Tags:

signtool

I went through the questions but could not find the exact same issue as what I am encountering.

I installed Signtool following the instructions under Windows 11, and am trying to apply the instructions here: https://learn.microsoft.com/en-us/windows/win32/seccrypto/using-signtool-to-sign-a-file

I simply type :

signtool sign myprog.exe

And I get the below. What gives ? :

At line:1 char:72 ... les (x86)\Windows Kits\10\bin\10.0.22000.0\x64\Signtool" sign ChecksB ... ~~~~ Unexpected token 'sign' in expression or statement. CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException FullyQualifiedErrorId : UnexpectedToken**

like image 970
Mitch Match Avatar asked Apr 01 '26 22:04

Mitch Match


1 Answers

The output looks strange, you seem to be in a folder called "Signtool". If you use Powershell you need to use .\ to invoke an application in the current directory, for example:

cd 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86\'

and then

.\signtool.exe sign C:\myprog.exe
like image 59
Lennart Avatar answered Apr 03 '26 16:04

Lennart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!