+ Post New Thread
Results 1 to 14 of 14
Windows 7 Thread, how to force "Run As" Administrator?? in Technical; Hi, I do network administration for a small business with a few stand-alone Windows 7 desktop computers. I configured the ...
  1. #1

    Join Date
    Jul 2011
    Location
    Canada
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    how to force "Run As" Administrator??

    Hi,

    I do network administration for a small business with a few stand-alone Windows 7 desktop computers. I configured the computers with an Administrator account and a Standard user account for the person using the machine. The Standard account needs to run software that requires Admin privileges and it always prompts for the Admin password. Is it possible to force these programs to run as administrator without prompting for the password??

    I apologize if this has been answered on another thread or forum but I've searched for quite a while and haven't found anything that actually works!

    Thank you.

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,622
    Thank Post
    1,240
    Thanked 777 Times in 674 Posts
    Rep Power
    235
    Quote Originally Posted by lambda View Post
    The Standard account needs to run software that requires Admin privileges and it always prompts for the Admin password. Is it possible to force these programs to run as administrator without prompting for the password??
    Why does the application need administrator privalages - is it trying to access a particular file owned by "administrator"? If so, your solution is probably to set permissions on that file (or, most likely, files) to allow the standard user to use it. It'd probably be best to write a script to set the permissions for you, specially if you have several files and several computers to deal with.

  3. #3

    Join Date
    Jul 2011
    Location
    Canada
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks for the quick reply!

    One of the programs that I needs to be run with Admin privileges is the Cisco QuickVPN app. Another is the Corel Draw X3 Suite Font Navigator program (for loading fonts into Corel Draw). I assume QuickVPN needs admin privileges because it temporarily modifies the computer's network configuration and Font Navigator probably needs to be Admin because it's working with Windows fonts???

  4. #4

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 479 Times in 302 Posts
    Rep Power
    215
    Can you right click the exe and go to properties > Compatibility > Privilege Level and tick the "Run this program as Administrator" box.

    Let me know if that works

  5. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    This may be what you are looking for:

    CPAU

    it allows standard users to run an application in an administrators userspace. Not an ideal security situation.

  6. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,720
    Thank Post
    3,248
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    hold down the left shift key and then right click on the exe you want to run as and think there is an option to "run as different user"

  7. 2 Thanks to mac_shinobi:

    burgemaster (7th October 2011), CHR1S (5th October 2011)

  8. #7

    CHR1S's Avatar
    Join Date
    Feb 2006
    Location
    Birmingham
    Posts
    4,489
    Thank Post
    1,575
    Thanked 479 Times in 302 Posts
    Rep Power
    215
    Quote Originally Posted by mac_shinobi View Post
    hold down the left shift key and then right click on the exe you want to run as and think there is an option to "run as different user"
    Learned something new today, thanks

  9. Thanks to CHR1S from:

    mac_shinobi (5th October 2011)

  10. #8

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,622
    Thank Post
    1,240
    Thanked 777 Times in 674 Posts
    Rep Power
    235
    Quote Originally Posted by lambda View Post
    TI assume QuickVPN needs admin privileges because it temporarily modifies the computer's network configuration and Font Navigator probably needs to be Admin because it's working with Windows fonts???
    Good point. In the past, I've used AutoIt to force a program to Run As an administrator: you simply write an AutoIt script that runs your application using the RunAs function, which also takes a username and password. AutoIT lets you compile scripts into self-contained executables so users can't easily open the script and figure out the password, although I wouldn't recommend it as completly water-tight security.

  11. #9

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,720
    Thank Post
    3,248
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    make a shortcut with the following path when it asks for which exe / app you want to link the shortcut to and point it to :

    Code:
    %windir%\system32\runas.exe /user:domain\user.name "path to exe"
    Will still prompt for at least a password to be entered for the username specified in the above shortcut path, not tested on win 7 propertly although it did work when I was launching an mmc

  12. #10

    Join Date
    Jul 2011
    Location
    Canada
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by dhicks View Post
    Good point. In the past, I've used AutoIt to force a program to Run As an administrator: you simply write an AutoIt script that runs your application using the RunAs function, which also takes a username and password. AutoIT lets you compile scripts into self-contained executables so users can't easily open the script and figure out the password, although I wouldn't recommend it as completly water-tight security.
    Sounds like better security than giving the user an admin password. Will this work on Windows 7? How do I set it up?? Thanks!

  13. #11

    Join Date
    Jul 2011
    Location
    Canada
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by mac_shinobi View Post
    make a shortcut with the following path when it asks for which exe / app you want to link the shortcut to and point it to :

    Code:
    %windir%\system32\runas.exe /user:domain\user.name "path to exe"
    Will still prompt for at least a password to be entered for the username specified in the above shortcut path, not tested on win 7 propertly although it did work when I was launching an mmc
    I've seen something like this on another forum where supposedly you only have to enter the password once and it saves it, but I could never get it to launch the program, it would just hang in the cmd window.

  14. #12

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,622
    Thank Post
    1,240
    Thanked 777 Times in 674 Posts
    Rep Power
    235
    Quote Originally Posted by lambda View Post
    Will this work on Windows 7?
    Yes - we've used AutoIT to cludge together an installer for a couple of particularly crummy applications that have no other installation method than to run through the executable installer, and everything works fine on Windows 7.

    How do I set it up??
    Simply go to:

    AutoIt - AutoItScript

    ...and download AutoIT. It really is very well put together - it's a full development environment, but very easy to use. Simply create a new script, look up the RunAs command in the online help (you'll probably only need a one-line script) and compile your script to an executable.

  15. #13

    Join Date
    Aug 2007
    Posts
    812
    Thank Post
    98
    Thanked 64 Times in 46 Posts
    Rep Power
    26
    I'm sure i saw a small program, it would encrypt the admin password and create an EXE that would load another EXE as admin.

    EDIT: this wasn't it, but looks similar
    Last edited by burgemaster; 7th October 2011 at 01:48 PM.

  16. #14

    Join Date
    Jul 2011
    Location
    Canada
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hello again! Thank you all for your replies. I ended up using a program called RunasSpc (Runas Password) It was easy to use and did what I needed it to do. I'm sure it's not the most elegant solution, but it'll have to do for now until I find something better. Thanks again!

SHARE:
+ Post New Thread

Similar Threads

  1. How to force Google Safe Search with RM SmartCache 2
    By gl3nnym in forum Internet Related/Filtering/Firewall
    Replies: 4
    Last Post: 21st June 2011, 08:55 AM
  2. How to force regular password change in FMS?
    By nielpeel in forum MIS Systems
    Replies: 3
    Last Post: 3rd November 2009, 11:01 AM
  3. How to force Windows XP shut down
    By SteveB_NI in forum How do you do....it?
    Replies: 8
    Last Post: 2nd October 2008, 01:29 PM
  4. How To Run Sims Registers With Pre Admissions Inc?
    By schoolbunny in forum MIS Systems
    Replies: 1
    Last Post: 4th July 2007, 05:08 PM
  5. how to run a registry patch on shutdown/logoff
    By The_Traveller in forum Windows
    Replies: 13
    Last Post: 20th November 2006, 08:52 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •