Skip to content

Instantly share code, notes, and snippets.

@alexverboon
Created October 9, 2020 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexverboon/2bdc93cde8cd536244d3364732bb415b to your computer and use it in GitHub Desktop.
Save alexverboon/2bdc93cde8cd536244d3364732bb415b to your computer and use it in GitHub Desktop.
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