PoshCode Archive  Artifact [2cfc031a7b]

Artifact 2cfc031a7b7c171853333dcb254c7c6d91540422033b5262552bc1a5664890de:

  • File Code-Correction.ps1 — part of check-in [602211aaad] at 2018-06-10 14:15:50 on branch trunk — Correction to line 51. Each octet pair should be two characters. Original code omits leading zeroes in an octet pair. The format expressions should be {”{0:x2}” and not {”{0:x}”. (user: Michael Liben size: 520)

# encoding: ascii
# api: powershell
# title: Code Correction
# description: Correction to line 51. Each octet pair should be two characters. Original code omits leading zeroes in an octet pair. The format expressions should be {”{0:x2}”  and not {”{0:x}”.
# version: 0.1
# author: Michael Liben
# license: CC0
# x-poshcode-id: 6441
# x-archived: 2016-07-04T13:25:21
# x-published: 2016-07-02T14:56:00
#
#

        $escapedGuid =  "\" + ((([GUID]$guid).ToByteArray() |% {"{0:x2}" -f $_}) -join '\')