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