Last active
October 16, 2025 20:58
-
-
Save MyITGuy/b453d32c47888ee1e219ff1570699122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ConvertFrom-ByteArray { | |
| [CmdletBinding()] | |
| param ( | |
| [Alias('appid')] | |
| [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)] | |
| [byte[]] | |
| $byteArray | |
| ) | |
| begin {} | |
| process { | |
| try { | |
| [System.Text.Encoding]::UTF8.GetString($byteArray) | |
| } | |
| catch { | |
| throw $_ | |
| } | |
| } | |
| end {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment