Powershell Command : Get-AuthenticodeSignature

Get-AuthenticodeSignature :

This cmdlet was used to get the Authenticode signature in a file.

Get-AuthenticodeSignature Description :

The Get-AuthenticodeSignature cmdlet was used to get the authenticode signature of the assosciated file, if the file was not signed then the fields will blank.

Get-AuthenticodeSignature Syntax :

Parameter Set: ByPath
Get-AuthenticodeSignature [-FilePath] <String[]> [ <CommonParameters>]

Parameter Set: ByLiteralPath
Get-AuthenticodeSignature -LiteralPath <String[]> [ <CommonParameters>]

Get-AuthenticodeSignature Parameters :

-FilePath<String[]>

It was used to specify the path of the file for which we are going to get the information.

-LiteralPath<String[]>

It was also used to specify the path of the file but the value of literal path parameter is used exactly as it was typed and wildcard characters are not used here.

CommonParameters:

-Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable.

Get-AuthenticodeSignature Examples :

1) This command is gets the information about the authenticide signature of the file NewScript.ps1

PS C:> get-AuthenticodeSignature -filepath C:TestNewScript.ps1

2) This command retrieves the authenticode signature of the all mentioned files.

PS C:> get-authenticodesignature test.ps1, test1.ps1, sign-file.ps1, makexml.ps1

You may also like...

1 Response

  1. Eminem says:

    Appreciating the time and effort you put into your blog and detailed information you present.
    It’s awesome to come across a blog every once in a while that isn’t the same out
    of date rehashed material. Great read! I’ve saved your site and I’m including your RSS feeds
    to my Google account.

Leave a Reply

Your email address will not be published. Required fields are marked *