User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Windows NT / 2000 / XP / 2003 section within the Tech Talk category of DaniWeb, a massive community of 429,791 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,800 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Windows NT / 2000 / XP / 2003 advertiser: Programming Forums
Views: 10223 | Replies: 15
Reply
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

create shortcut to run as a different user

  #1  
Jun 19th, 2006
I have a program that I want to run, but it will only run in the adminstrator account, is there a way I can create a shortcut by entering the admin password into it somehow to run?

This is what I've tried and it didn't work:
I created a regular shortcut to the program, then I right-clicked, properties
then under the shortcut tab, i clicked advanced
then I check off "run with different credentials" click ok, and click ok again
and I hoped it was going to ask me to save the username/password but it never did, it pops up asking me to enter it everytime i click the shortcut

I even created a shortcut to the command runas usign the /savecred options, but that requires you to enter the password after every restart (or if they logout)

I understand there might be security issues, I really don't care about that, it's just a personal computer, not a work computer.

Please help!
Last edited by paradox814 : Jun 19th, 2006 at 5:05 pm.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: FL.
Posts: 1,536
Reputation: tayspen is on a distinguished road 
Rep Power: 7
Solved Threads: 98
Colleague
tayspen's Avatar
tayspen tayspen is offline Offline
<Insert title here>

Re: create shortcut to run as a different user

  #2  
Jun 19th, 2006
Right clicking the program or shortcut, then selecting Run as, then ticking The following user. Then entering there user info, always worked for me.

Perhaps that is the same thing as

runas usign the /savecred options

But, I am not sure. The right click > Run as always did it for me.

note: You must know the admin password...
Firefox
Ewido
Tune up windows
Get detailed system information
My Fixes

Member - Alliance of Security Analysis Professionals - Since 2006
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: create shortcut to run as a different user

  #3  
Jun 19th, 2006
Tayspen: Does that save the settings after you reboot?
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: create shortcut to run as a different user

  #4  
Jun 19th, 2006
Originally Posted by tayspen
Right clicking the program or shortcut, then selecting Run as, then ticking The following user. Then entering there user info, always worked for me.

Perhaps that is the same thing as



But, I am not sure. The right click > Run as always did it for me.

note: You must know the admin password...


that won't work because it will not save the password, which is what I want. I know I can enter the password each and every single time, but I don't want to have to do that, that's why I posted the question. The runas option at least will save the password for the entire session while the user is logged in, but it won't work on a logout or a reboot
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: create shortcut to run as a different user

  #5  
Jun 19th, 2006
I can make a program that does this if you want.... in fact, I've already started working on one (some time ago), I can resurrect it and finish it up if you'd like.....

EDIT: The code is just about done now.... I'm going to test it and work out any kinks, but it seems to work swell. How it works is, on the first load up you give it the information, username, password, domain (if applicable), and the path to the program to run. Then you hit save, and it saves all that info in the registry.... it also encrypts the password. It's not a super-secure algorithm for the encryption, but it keeps it from being plain text, and it might take a little work to get through. Everytime you run it after that, it reads the info from the registry, and uses it to the launch the program you have specified as the user you have specified.... if you need to change the information used by the program, all you do is pass the program any parameter, and it will load the GUI to change the info.... (or you can get crazy, and do it in the registry). There can even be an icon for loading the gui seperately..... anyhow, let me know if you want it.
Last edited by Comatose : Jun 19th, 2006 at 8:17 pm.
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: create shortcut to run as a different user

  #6  
Jun 19th, 2006
Originally Posted by Comatose
I can make a program that does this if you want.... in fact, I've already started working on one (some time ago), I can resurrect it and finish it up if you'd like.....


only if i can have the source code
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: create shortcut to run as a different user

  #7  
Jun 19th, 2006
Certainly.... it's coded in VB6, and I can attach both an EXE and the source code (in case you don't have a compiler)... let me work out the kinks and I'll post both up here.
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: create shortcut to run as a different user

  #8  
Jun 19th, 2006
i already have vb6, but both would be appreciated, thanks!
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: create shortcut to run as a different user

  #9  
Jun 19th, 2006
If you have VB6, It's better if you compile it yourself, because you can change the key used for encypting the password, here is the source...
Attached Files
File Type: zip RunAs.zip (6.6 KB, 214 views)
Reply With Quote  
Join Date: Sep 2006
Posts: 37
Reputation: ¤| battousai |¤ is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
¤| battousai |¤ ¤| battousai |¤ is offline Offline
Light Poster

Question Re: create shortcut to run as a different user

  #10  
Sep 26th, 2006
right, I'm not sure about your policies on bumping a post but here it goes.

So a few days ago I say the 31 day count so me thinks: time for a fresh install. So I did, and on the first logon I proceed with installing the drivers for my mainboard and GPU. Ofcours the account used had the standard admin rights. A few reboots and soft instals later I thought to maybe take this chance of a clean install to mess around with different rights a bit. So I loged on with the admin account and demoted myself(the account I normally use) to power user, lowering certain rights. But now when I logon with my normal account(the power user) I get multiple errors and warning msg stating that either the driver failed to load or they encountered the wrong handle, something to do with the change in rights doubt.

what I would like to do is take a dig in the register and just have all these drivers load as the admin user, so using the cmd runas or something.:p
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Windows NT / 2000 / XP / 2003 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Windows NT / 2000 / XP / 2003 Forum

All times are GMT -4. The time now is 4:24 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC