Changing a shortcut's (icon) target

malG

Senior member
Jun 2, 2005
309
0
76
I'm running XP Home in a limited user account. Some games require me to run in an Admin account so while in limited account, I right click the applicable start menu shortcut (icon) and select "Run as..." which solves the problem.

I wonder if it's possible to change the shortcut's (icon) target (right click shortcut, properties, "Shortcut" tab) so I can directly enter the Admin username/password? This will save me a few clicks. Thanks.
 

porcorosso

Member
Feb 22, 2006
123
0
0
If I understand what you're asking, the answer is yes.

In the Target field of the Shortcut tab of the shortcut's Properties dialog you need to change the information so that RUNAS is the target and the executable is a parameter of RUNAS.

If you open a CMD window and type "RUNAS /?" (no quotes) and hit the Enter key you'll see a listing of the syntax to be use, with some examples. If you use the /savecred switch then you'll only be asked to enter the admin profile password the first time you use the modified shortcut. After that the shortcut will simply execute under the admin credentials.

I hope this explanation is clear enough. I've got a migraine today. Not thinking very well.

 

scottws

Senior member
Oct 29, 2002
468
0
0
Yeah, you do something like this:

"runas /user:<pc name>\Administrator /savecred <path to program>"

I think that's the right syntax.
 

malG

Senior member
Jun 2, 2005
309
0
76
Originally posted by: scottws

"runas /user:<pc name>\Administrator /savecred <path to program>"

COD2's shortcut target: "C:\Program Files\Activision\Call of Duty 2\cod2sp_s.exe"

My computer name is: "XPC"

My limited user account is: "malG"

Hence the target should be "runas /user:XPC\Administrator /savecred C:\Program Files\Activision\Call of Duty 2\cod2sp_s.exe"

It doesn't seem to work, can you please double check? Thanks.
 

porcorosso

Member
Feb 22, 2006
123
0
0
Just a problem with the positioning of quotation marks. Should be --

C:\WINDOWS\system32\runas.exe /user:Administrator /savecred "C:\Program Files\ctivision\Call of Duty 2\cod2sp_s.exe"

-- assuming that the admin user account you are using is actually named "Administrator". The first time you use the shortcut you'll get a command line interface with a request for the password for the admin user. If you supply the correct password that first time then the next time you use the shortcut the software will just run under the admin account.

You should be able to just copy / paste what I put above into the shortcut's "Target" field. BTW, it isn't necessary to include the machine name in this case.
 

scottws

Senior member
Oct 29, 2002
468
0
0
Actually, don't copy/paste what he has lol.

porcorosso! You forgot the "A" in "Activision."
 

porcorosso

Member
Feb 22, 2006
123
0
0
*administers dope slap to self*



Hey, I ain't very smart on my best days. And I've got a serious brain ache today.

Thanks for catching that, scottws. My apologies to malG if my misstep caused any hardship.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |