Search notes:

Windows: Administrators group

Checking if in Administrators group

In PowerShell, it's possible to check if one has administrator privileges with the following line. It returns either True or False.
([security.principal.windowsPrincipal] [security.principal.WindowsIdentity]::getCurrent()).isInRole([security.principal.windowsBuiltInRole]::administrator)
Compare with get-localGroupMember -name Administrators.

See also

git config

Index