Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
service types
# convert service types
$sku_lookup1 = @{
1 ="KernelDriver"
2 = "FileSystemDriver"
4 ="Adapter"
8 = "RecognizerDriver"
16= "Win32OwnProcess"
32 ="Win32ShareProcess"
48 = "Win32"
208 = "Win32OwnProcess"
224 = "Win32ShareProcess"
256= "InteractiveProcess"
}
$value = 48
$decoded = $sku_lookup1.Keys | foreach {$sku_lookup1.item(($_ ) -band $value)}
$decoded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment