PowerShell: Test-CurrentUserIsLocalAdmin

Is it very useful to run simple checks to validate the user environment, especially when checking if the context while user is working is aligned with out expectations or requirements. But is not always easy to get a simple information such as if the current user is a local admin or not.
It’s very easy to check it from the user interface, but I found that can be important to gather that information with powershell without running as an administrator.

Continue reading “PowerShell: Test-CurrentUserIsLocalAdmin”