PoshCode Archive  All files named "is-local-admin.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for is-local-admin.ps1

Added: I could not find a solution that checks if a user is in local admin groups that can handle a situation if the user is there indirectly, that is a member of a group that is a part of the admin group. The below is what I came up with. The $env:USERDOMAIN part is iffy, since it depends on the account the script is run under, but that was enough for my purposes. Also it seems to detect the membership correctly even for local users and for users that are not local and not in the $env:USERDOMAIN domain, which is good file: [04defe83bb] check-in: [d6916d0c8c] user: zespri branch: trunk, size: 1325