Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $status = @{1 = "Offline" ; 2 = "Paper Tray Empty" ; 4 = "Toner Exhausted" ; 8 = "Paper Jam" }
- $value = 12
- $status.Keys | where { $_ -band $value } | foreach { $status.Get_Item($_) } # "Paper Jam \nToner Exhausted"
Add Comment
Please, Sign In to add comment