I\'m looking for example of how I would solve the scenario below:
Imagine my printer has the following property for \"Status\" 0 -Offline 2 -Paper Tray Empty
You can let PowerShell do more of the work for you. Here's an example using System.IO.FileOptions:
PS> [enum]::GetValues([io.fileoptions]) | ?{$_.value__ -band 0x90000000} RandomAccess WriteThrough