Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Demonstration on how to convert the DriverVersion property of Get-PrinterDriver in a readable format.
Get-PrinterDriver | Select-Object Name,@{
$ver = $_.DriverVersion
$rev = $ver -band 0xffff
$build = ($ver -shr 16) -band 0xffff
$minor = ($ver -shr 32) -band 0xffff
$major = ($ver -shr 48) -band 0xffff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment