Click here to get back home

Running a program with elevated privilages

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Running a program with elevated privilages tony houlihan 11-12-2007
Posted by Anthony on November 13, 2007, 9:36 am
Please log in for more thread options
Hi Tony,
Yes, but you can include the first run files and keys in your package. When
you are making the snapshot, just execute the application once before you
complete the package.
There's also a RunOnce key in the registry that will execute the first time
after a reboot.
I agree there are still some applications where this won't work.
Anthony, http://www.airdesk.co.uk


> 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!
>> 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
>>
>>
>>> 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
>>>> 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.
>>>
>>
>>
>



Similar ThreadsPosted
what is that best way to install program? September 27, 2005, 9:40 am
Program Showing in TaskManager as .EX August 10, 2006, 9:02 pm
VBScript program loses network access September 15, 2005, 5:10 am
running .bat files January 9, 2008, 11:00 am
Email program won't send in Windows 2003 - Queue_Manager December 8, 2005, 2:02 pm
Terminal services-give a program admin rights January 10, 2006, 4:14 pm
BREAKING NEWS: MCP Program Takes New Road in September June 29, 2006, 4:52 am
services running under a certain account August 15, 2005, 9:19 am
bmss.exe running on boot February 26, 2006, 2:56 am
What's danger of running dcgpofix /target:both June 14, 2005, 12:41 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap