03-31-2006 08:05 AM
Hi all,
My question is as follows, can we have a LabVIEW program use administrator rights without forcing the user to have administrator privileges. By having the program function this way, we would be able to prevent un-authorized users (without administrator rights) from accessing our networks, but they could use the LabVIEW program. The program accesses a time sync server to reset the computers time prior to runs, which requires administrator privileges.
All programs will be running
03-31-2006 08:30 AM
04-02-2006 03:23 AM
Hi jim,
The attached VI will launch an application as a different user.
With it, you could build a VI that launches the app needing priviledges.
Since any user can launch this VI, they don't need to know the admin's password to run the target with admin priviledges!
Cheers.
04-02-2006 03:41 AM
04-02-2006 04:03 AM
Thanks, Conseils. It was a nice surprise to see those stars so quickly!
Cheers!
04-02-2006 03:42 PM
Hi Jim, Conseils,
Please consider using the attached Launcher2.vi It closes thread and process handles associated with call, allowing Launcher2.vi to be calleded multiple times without incurring a memory leak.
Cheers.
04-02-2006 04:09 PM
04-02-2006 05:11 PM - edited 04-02-2006 05:11 PM
Message Edited by Dynamik on 04-02-2006 05:12 PM
Message Edited by Dynamik on 04-02-2006 05:13 PM
04-03-2006 06:22 AM
04-04-2006 08:05 AM
Thanks all for answering so quickly. We would like to do this through LabVIEW and the dll looks like the way to go. When I tried the program, it gave me an error. Looks like my program as I read up on the dll and it looks good. I will try again later. Again, thanks for pointing us in the right direction.