LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I find out if the logged in windows user is adminstrator?

Hi All

 

I have an app where I wish to disable certain functionailty if the logged in user is NOT an administrator.

 

Is there a straightforward way to determine this. I cant find an Application property that returns this value,  i know it may be accessible from the registry but I have not been about to find out where and what to look for.

 

All help much appreciated.

 

Regards

 

Tristan

0 Kudos
Message 1 of 6
(3,296 Views)
Right click on the START button. If you see "Open All Users" rather than just "Open," the account is in the local Administrators group.
0 Kudos
Message 2 of 6
(3,292 Views)
0 Kudos
Message 3 of 6
(3,285 Views)
Sorry people I wasnt clear enough. I need to determine this programmatically within labVIEW..
0 Kudos
Message 4 of 6
(3,257 Views)
The solution muks linked to should work. You just have to be aware that if you are running vista/windows7 with UAC turned on it will show the user is no admin if he doesn't run labview with admin privileges.
0 Kudos
Message 6 of 6
(3,243 Views)