Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Convert Data to Hexadecimal Output in PowerShell 5

$
0
0

Summary: Use the Format-Hex cmdlet to produce hexadecimal output.

Hey, Scripting Guy! Question How can I use Windows PowerShell to put data in a binary key in the registry?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0, you can use the Format-Hex cmdlet, for example:

‘This is meant to be binary’ | Format-Hex

$DataForRegistry=(‘This is meant to be binary’ | Format-Hex).Bytes


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>