Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MosesMendoza/7e39d9af4419868ea4e613e52fe2bcb8 to your computer and use it in GitHub Desktop.
Save MosesMendoza/7e39d9af4419868ea4e613e52fe2bcb8 to your computer and use it in GitHub Desktop.
irb(main):003:0> Puppet::Util::Windows::SID::Principal.lookup_account_name('NT AUTHORITY\\SYSTEM')
=> #<Puppet::Util::Windows::SID::Principal:0x00000005ff8b10 @account="SYSTEM", @sid_bytes=[1, 1, 0, 0, 0, 0, 0, 5, 18, 0, 0, 0], @sid="S-1-5-18", @domain="NT-AUTORIT\u00C4T", @account_type=:SidTypeWellKnownGroup, @domain_account="NT-AUTORIT\u00C4T\\SYSTEM">
irb(main):004:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment