Solved

How to allow a program always run at startup and run as an administrator?

Posted on 2004-07-30
5
949 Views
Last Modified: 2013-12-04
I create a Limit user account, this account have a program always run at startup and it needs to read/write some settings in the registry. However Windows prevents it from modifying the registry because it's running under a Limit user account.
How do I allow this program always run at startup with administrator permission?
0
Comment
Question by:geidza
5 Comments
 
LVL 4

Expert Comment

by:WerewolfTA
ID: 11677331
Sounds like you need to script that program to run with administrator credentials.  Try this link:

http://www.jsiinc.com/SUBO/tip7100/rh7111.htm
0
 
LVL 11

Expert Comment

by:gothicbloody
ID: 11680141
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 11680264
Two cases here: If the program changes (restricted) settings in the HKCU part, there's nothing you can do except change the permissions on the trees in question. Any "runas" procedure will not have access to another user's registry.
If this is only about the HKLM part, the easiest solution would be to simply create a scheduled task to run at logon, and use an appropriate user account to run the scheduled task.
Another option, if the security on the keys in question isn't really a concern, would be to get RegMon (http://www.sysinternals.com/ntw2k/source/regmon.shtml) (and maybe FileMon, http://www.sysinternals.com/ntw2k/source/filemon.shtml), logon with the limited account, start RegMon with an administrative account using runas, filter for your program and have RegMon log errors only, then start the program. RegMon will report the errors, so that you can identify the keys in question and change the permissions accordingly. Once that's done, the user can run the program without further problems.
0
 
LVL 4

Expert Comment

by:WerewolfTA
ID: 11680474
Damn, I think I like oBdA's solutions better than mine.  :)  

Never even thought about the reg keys permissions in HKCU. You rock, man!
0
 

Author Comment

by:geidza
ID: 11682915
yes, setting key permissions in the registry is a simple way.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
OSSEC, can't pull in System and Application logs. 11 114
Is CCleaner a virus?  Do you use CCleaner? 18 393
How to implement SSO? 22 83
Compromised PC? 17 239
Recently, a new law in my state forced us to get a top-to-bottom analysis of all of our contract client's networks. While we have documentation, it was spotty at best for some - and in any event it needed to be checked against reality. That was m…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question