From f8f7a0602ce4056e73c22b20cf53bdc4e339aecd Mon Sep 17 00:00:00 2001 From: Michael Lombardi Date: Fri, 1 Dec 2023 15:16:19 -0600 Subject: [PATCH] (GH-10698) Update `-Content` parameter for `Get-Authenticode` in 7.4 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 --- .../Get-AuthenticodeSignature.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md b/reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md index 742de7ba9e12..8b9d6e794bb2 100644 --- a/reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md +++ b/reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md @@ -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 @@ -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[]