Search notes:

System.Security.Claims.Claim (class)

An instance of System.Security.Claims.Claim represents a claim.
foreach ($claim in [System.Security.Principal.WindowsIdentity]::GetCurrent().Claims) {
   if ($claim.valueType -ne 'http://www.w3.org/2001/XMLSchema#string') {
      $claim.valueType
   }
   if ($claim.Type -eq 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name') {
      $typeName   = 'Name'
      $valueIsSID = $false
   }
   elseif ($claim.Type -eq 'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid') {
      $typeName   = 'Primary SID'
      $valueIsSID = $true
   }
   elseif ($claim.Type -eq 'http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid') {
      $typeName   = 'Primary Group SID'
      $valueIsSID = $true
   }
   elseif ($claim.Type -eq 'http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid') {
      $typeName   = 'Group SID'
      $valueIsSID = $true
   }
   else {
      $typeName   = '?'
      $valueIsSID = $false
   }
   $sidName = ''
   if ($valueIsSID) {
      $sidName = ((new-object System.Security.Principal.SecurityIdentifier ($claim.value) ).Translate( [System.Security.Principal.NTAccount])).Value 
   }
   '{0,-17}: {1,-50} {2}' -f $typeName, $claim.value, $sidName
}

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/Microsof...', 1759375363, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Security/Claims/Claim/index(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78