GUIDs to Octets, GUIDs to Base64 strings and back again

December 26, 2011

not sure if anyone is still looking at this but i …

Unknown - Jan 6, 2015

not sure if anyone is still looking at this but i have a question that seems simple but its puzzling me!
I am trying to follow the instructions to convert a GUID into a string. I have done this:

Which you can do with this one line of PowerShell script

[System.String]::Join('',(( new-object system.guid(‘8c4ac332-975f-4717-ad7b-ba4a4e968fff’) ).ToByteArray()
ForEach-Object { $_.ToString(‘x2’) } ) )

However it doesnt appear to work? how do i actually output the string?
Thanks