Search notes:

System.Security.Principal.WindowsIdentity (class)

System.Security.Principal.WindowsIdentity represents a Windows user (or more techically a Windows NT security token).

TODO

Create a System.Security.Principal.WindowsPrincipal object from a WindowsIdentity object:
$curIdentity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$principal   = new-object System.Security.Principal.WindowsPrincipal $curIdentity
$principal.IsInRole([System.Security.Principal.WindowsBuiltInRole]::User)
$principal.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)

See also

The (static) method GetCurrent() returns a WindowsIdentity object that represents the current user.
The property AuthenticationType indicates how a user was authenticated.
The property .Claims returns a list of System.Security.Claims.Claim objects.
group

Index