?
Solved

Run program as admin without clicking on Win7

Posted on 2013-10-31
7
Medium Priority
?
491 Views
Last Modified: 2013-11-06
Hi,

I have a couple of programs that I need to run as administrator.  Every time I launch the program, Windows 7 security  brings up a permission screen requiring me to click on it.

I'd like to to be able to launch a couple of programs from a Windows equivalent of a cron, but how can I do that if I have to be there to click to grant permission?

Can I give a program admin privileges without having my personal interaction?  Is there a way to do this?
0
Comment
Question by:ugeb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 1

Expert Comment

by:Jpoppi
ID: 39615509
I'm thinking this might have something to do with UAC. Maybe try disabling UAC completely and see if the prompt still appears.

Disable UAC

If this works, and you still want UAC turned on (Recommended), you might have to go down this path, which is a little more complicated. (This guide also applies for Win 7)

Disable UAC for a select program
0
 
LVL 97

Accepted Solution

by:
Experienced Member earned 2000 total points
ID: 39615510
The way to do this in Windows 7 is to use Windows Scheduler (Task Scheduler). Scheduler can start Admin tasks with permissions.

Run with Highest Privileges is under the General Tab. Take a look and it should do what you need.

.... Thinkpads_User
0
 
LVL 97

Expert Comment

by:Experienced Member
ID: 39615514
@ugeb  - to the post above mine: I do NOT recommend you disable UAC. This is the wrong thing to do in Windows 7. It is there to help prevent people from accessing your computer if you click on a wrong link (for example).

... Thinkpads_User
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 5

Expert Comment

by:Recept
ID: 39615516
You can save the admin credentials and run scheduled tasks (equivalent of cron).

When you create a scheduled task set the following options in the General tab;
When running the task, use the following user account: (select your Admin account)
Run whether user is logged on or not
Run with the highest privilages
0
 
LVL 56

Expert Comment

by:McKnife
ID: 39616146
[scheduled task is the way to go, yes]
In addition: If your own account is an admin, you don't need to save a password, but you can select "run only when logged in". If it ain't admin, consider using the system account ("system"), because then, we don't need to save a password to the task. That task would fail if we changed the pw.
0
 
LVL 11

Author Closing Comment

by:ugeb
ID: 39629096
Thank you all for your comments.  I think the scheduler is what will work best for me. I'm iffy on disabling the UAC for anything as I've been bitten by the viral bugs before when my guard was down.

Thanks to all!
0
 
LVL 97

Expert Comment

by:Experienced Member
ID: 39629098
@ugeb - Thanks and I was happy to help you with this.

... Thinkpads_User
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Determining the an SCCM package name from the Package ID
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

801 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