This is a quick sample code that I used quite often on customer sites:
- To Check whether or not I am a local admin on my machine.
- To quickly list what Windows groups my user account is part of.
This is a quick sample code that I used quite often on customer sites:
Posted by Joao Morais on February 15, 2011
https://blog.ilab8.com/2011/02/15/am-i-admin/