Solved

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

Posted on 2004-07-30
5
945 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 83

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

947 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now