Re: Running a program with elevated privilages



Thanks for the post anthony however the installation is not really the problem it's running the program for the first time that creates an issue as admin rights appear to be needed to create registry entries and register an OCX. Again for only 20 users not really a problem but they are using full roaming profiles and the client was all users to be setup with the application on all computers! 20 x 20 = 400 logons.... not really something I fancy doing!
"Anthony" <anthony.spam@xxxxxxxxxxxxxx> wrote in message news:ezTs37WJIHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
You just need to create an msi package for it, using a packaging tool. Then you can keep admin rights restricted. Or you could use a script or a deployment tool to run the setup.
Anthony, http://www.airdesk.co.uk


"tony houlihan" <tony@xxxxxxxxxxxxxxxxxxx> wrote in message news:060B0FE5-8C2B-45FE-8618-F87FB91F8017@xxxxxxxxxxxxxxxx
Thanks for the reply,

part of the problem with this application is that we know it's only on the first run of the application, we know that it needs to register an OCX on first run but as for the registry..... I guess regmon will need to be used.

Thanks for the reply.

Tony
"Chris M" <nobody@xxxxxxxxxxxxxxx> wrote in message news:fh9t3s$fql$1@xxxxxxxxxxx
tony houlihan wrote:
I understand that under windows 2000 the EPAL.exe program could be used to run a program which required a higher level of privilages than that of the logged in user but is this program usable under server 2003.

In addition to this does anyone know a better way of addressing this situation:

company with 20 client computers and 20 users. A legacy application is needed on all clients with all users using roaming profiles needing access to the program. The legacy app requires the user to have Admin rights on the first log in and lauch of the application (presumably to modify the HKEY\Local Users\ somthing key registry section), obviously this presents a headache for installation and administration..............

If I were you I'd find out what the program is trying to do that causes it to fail as a normal user. If it's trying to add a registry key as you have suggested, then you could perhaps push out the correct values via a Group Policy instead of running the program elevated.

Perhaps the program needs to be able to write to some files in its program folder, in which case you could relax filesystem permissions on the particular files that it uses.

In my opinion, it's better to relax the security on a couple of files or registry keys (depending on what they are, of course) than to run the whole program with admin rights.

Regmon and Filemon are invaluable tools for these situations:

http://www.microsoft.com/technet/sysinternals/default.mspx


--
Chris.




.



Relevant Pages

  • Re: Copy protection scheme
    ... Presumably you can modify the access rights to that part of the registry ... at installation, if you have admin rights at install of course? ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: anyone running Kodak Dental imaging
    ... > local admin rights for the software to work correctly. ... >> handle imaging integration between Gendex and Dentrix. ... >> I would say that the issues with Kodak Imaging are similar. ... >> and/or per user registry settings. ...
    (microsoft.public.windows.server.sbs)
  • Re: Quickbooks does not open
    ... for now we can to accomodate them and complain to them. ... There is another way around the registry permissions issue. ... > You don't have to give the user full admin rights, but you do have to give ... > computer's Power Users group and all will be right with the world. ...
    (microsoft.public.windows.server.sbs)
  • Re: Local Administrators group
    ... How do I give the users local Admin rights to the registry? ... I'm happy with giving users full admin rights to there local computer. ... >> Mark Heitbrink - MVP Windows Server ...
    (microsoft.public.windows.group_policy)
  • RE: registry class
    ... Do you have access to the registry as a user on that machine? ... on with full admin rights, does the code work? ... Purchase VFP8 here: ...
    (microsoft.public.fox.programmer.exchange)