Example Code

Windows Login User Groups and Permissions

Code and Documents

Attachment

This code will return all the user groups the current user belongs to (using the Windows login).  It also searches for the Admin group and outputs a boolean if the user is an Administrator.

It was written in LV 2010 SP1 and is built on the System Exec.vi.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
FredM
Member
Member
on

In my system, Win XP and LV 12, the %Username% does not resolve to me. I believe it should but there must be some error in format. Machines are far too demanding, aren't they?

Contributors