Search notes:

System.DirectoryServices.AccountManagement.UserPrincipal (class)

System.DirectoryServices.AccountManagement.UserPrincipal inherits from System.DirectoryServices.AccountManagement.AuthenticablePrincipal.

Method Current

In PowerShell:
add-type -assemblyName System.DirectoryServices.AccountManagement
$me = [System.DirectoryServices.AccountManagement.UserPrincipal]::Current
$me.GetType().FullName  # System.DirectoryServices.AccountManagement.UserPrincipal
$me.GetGroups()
$me.Sid                 # Gets a System.Security.Principal.SecurityIdentifier
$me.LastPasswordSet
$me.ContextA            # Gets a System.DirectoryServices.AccountManagement.PrincipalContext

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...', 1759525865, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/DirectoryServices/AccountManagement/UserPrincipal/index(43): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78