Run As

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

maky

Thread Starter
Joined
Jul 30, 2007
Messages
24
Hi

My account has administrator privileges, and there's another account which is a limited-user.

I would like to make a shortcut to a program (Golfer.exe) in the the desktop of the limited-user a/c... so that when it runs, only that program runs under admin credentials.

I heard that this can be accomplished using "runas /savecred" in a batch file.

please tell me what the content of the batch file should be.

Here for example consider:

admin a/c name: maky
password: fakepw

location of Golfer.exe is D:\Golfer\Golfer.exe

How do I make a shortcut to this file on the limited-user account's desktop, so that when I double-click on the shortcut, it automatically runs under admin credentials (without asking for admin password)
 
Joined
Feb 13, 1999
Messages
8,974
You should not use a batch file, which will have the ID and password shown. Instead you should create a shortcut, see the details below:

Use the Run As command with a shortcut
1. Navigate to the shortcut item. Click Start, point to Programs, and then locate the shortcut item in the Programs menu.

If the shortcut is not located in the Programs folder of the Start menu, navigate to the proper location of the shortcut.
2. Press SHIFT and hold while you right-click the shortcut item, and then click Run as.
3. Perform one of the following steps, depending on which operating system you have:
• Windows 2000: In Run As Other User, type the User name, Password, and Domain, and then click OK.
• Windows XP: In Run As, click the the following user option, type or select the User name, type the Password, and then click OK.
 

maky

Thread Starter
Joined
Jul 30, 2007
Messages
24
I tried what you suggested, but I get the following error:


and another error which says:
"Golfer.exe has encountered a problem and needs to close. Sorry for the inconvenience."

"Debug" "Close"
 

maky

Thread Starter
Joined
Jul 30, 2007
Messages
24
I tried to use Steel Run-As and I got the same error.

Runasspc works fine, but its indirect (running the crypt file through runasspc which in turn runs the program), is there something else which is a little more direct?

I'm pretty sure that the program which I'm trying to run is compatible with XP. I'm still not sure why I get that C++ Runtime error.
 

Squashman

Retired Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
I tried to use Steel Run-As and I got the same error.

Runasspc works fine, but its indirect (running the crypt file through runasspc which in turn runs the program), is there something else which is a little more direct?

I'm pretty sure that the program which I'm trying to run is compatible with XP. I'm still not sure why I get that C++ Runtime error.
If you are getting runtime errors then I would think there is something else wrong with your computer.

You can create a Batch file to use Runasspc. Then all they have to do is launch the batch file.

There are plenty of other Runas programs out on the Interenet. I was just giving you a few free options.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top