Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Set-AuthenticodeSignature

Set-AuthenticodeSignature - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Set-AuthenticodeSignature


Short description
Adds an Authenticode signature to a Windows PowerShell script or other file.

Syntax
Set-AuthenticodeSignature [-FilePath] <string[]> [-Certificate] <X509Certificate2> [-Force] [-HashAlgorithm <string

Description
The Set-AuthenticodeSignature cmdlet adds an Authenticode signature to any file that supports Subject Interface Pac
kage (SIP).  

In a Windows PowerShell script file, the signature takes the form of a block of text that indicates the end of the 
instructions that are executed in the script. If there is a signature in the file when this cmdlet runs, that signa
ture is removed.