Skip to content

Commit

Permalink
(GH-10698) Update -Content parameter for Get-Authenticode in 7.4
Browse files Browse the repository at this point in the history
Prior to this change, the documentation for the `-Content` parameter of
the `Get-Authenticode` cmdlet in version 7.4 incorrectly stated that the
contents must be encoded as UTF-16LE. This was true in prior versions,
but in 7.4 the cmdlet works with content of any valid and readable encoding.

This change:

- Updates the description for the `-Content` parameter to indicate that the
  encoding limitation is removed in PowerShell 7.4.
- Resolves #10698
- Fixes AB#187542
  • Loading branch information
michaeltlombardi committed Dec 1, 2023
1 parent 98dfb4a commit f8f7a06
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Security.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Security
ms.date: 12/12/2022
ms.date: 12/01/2023
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-authenticodesignature?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Get-AuthenticodeSignature
Expand Down Expand Up @@ -97,9 +97,9 @@ example, the file extension is specified along with the content of the file.

### -Content

Contents of a file as a byte array for which the Authenticode signature is retrieved. This parameter
must be used with **SourcePathOrExtension** parameter. The contents of the file must be in Unicode
(UTF-16LE) format.
Contents of a file as a byte array for which the Authenticode signature is retrieved. This
parameter must be used with **SourcePathOrExtension** parameter. Prior to PowerShell 7.4, the
contents of the file must be in Unicode (UTF-16LE) format.

```yaml
Type: System.Byte[]
Expand Down

0 comments on commit f8f7a06

Please sign in to comment.