07-27-2006 08:14 AM
07-27-2006 09:21 AM
07-27-2006 09:54 AM - edited 07-27-2006 09:54 AM
I want to be able to check the Group the user is in (Admin, Standard User, Guest, etc.).
So if a Standard User logs into the computer they will not be able to acess the Admin option on the VI because of a check that is done to verify if the user has the appropriate permissions. Where as if an Administrator logged in then they would be able to acess the Admin option on the VI.
Message Edited by B5J20 on 07-27-2006 10:55 AM
07-27-2006 01:02 PM
07-28-2006 08:25 AM
Try this vbs script.
http://www.computerperformance.co.uk/vbscript/vbscript_group_user_memberof.htm
07-28-2006 08:48 AM - edited 07-28-2006 08:48 AM
Message Edited by Jarrod S. on 07-28-2006 08:49 AM
07-28-2006 08:58 AM
07-28-2006 09:12 AM
I get the same error when I run it on my machine.
07-28-2006 09:15 AM
To be honest I couldn't ever get the sUserPrincipalName correct for some reason. I wasn't getting the incorrect function error. I did find a better solution, however, that just uses the current user, eliminating the need to specify it by name. How does this work?
07-28-2006 09:17 AM
Hey this works great,
Thanks