Search notes:

Windows: Service SID (S-1-5-80-…)

SIDs that start with S-1-5-80- identify a service.

Calculation of the five numbers following S-1-5-80

The 5 numbers following the S-1-5-80- can be calculated in PowerShell as follows, for example for the Trusted Installer service.
$serviceName = "TrustedInstaller"
$bytes       = [Text.Encoding]::Unicode.GetBytes($serviceName.ToUpper())
$sha1        = [Security.Cryptography.SHA1]::Create()
$hash        = $sha1.ComputeHash($bytes)
$rids        = new-object UInt32[] 5
[Buffer]::BlockCopy($hash, 0, $rids, 0, $hash.Length)
'S-1-5-80-{0}-{1}-{2}-{3}-{4}' -f $rids[0], $rids[1], $rids[2], $rids[3], $rids[4]
When executed, these commands print:
S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464
I found this calculation in the Blog Tyranid's Lair: The Art of Becoming TrustedInstaller.
Apparently, this calculation can also be performed by the WinAPI function RtlCreateServiceSid.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759392585, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/security/SID/S-1-5/80/x-x-x-x-x/index(53): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78