Opening a program as a different user (with /savecred) fails

14,513

From C:\> runas /?:

/savecred: to use credentials previously saved by the user.

This option is not available on Windows 7 Home or Windows 7 Starter Editions and will be ignored.

If you are not running a Home or Starter edition of Windows 7 please update your question to provide more details on your version and network setup.

Additionally, /savecred is ONLY for the user who ran the Runas /Savecred. So if you use Savecred, and give the password, you won't have to enter it again, but other users would have to repeat the /savecred, and enter the password, to have the credentials saved for their use.

You can see which credentials are cached in the Windows Credential Manager (Control Panel>User Accounts>Credential Manager)

Share:
14,513

Related videos on Youtube

Evan Plaice
Author by

Evan Plaice

I'm passionate about coding and researching the history of technology as well as exploring where technology is leading. I have a wide variety of experience from Commercial Flight Simulation, Military Contracting, Telecommunications, as well as regularly contributing to the Open Source Software ecosystem for a number of years. I have specialized in dancing the line between Hardware (ex IO, Low-voltage signaling, telecom) and Software (ex networking, parsing, desktop dev, web dev). Author of jQuery-CSV, the first of the RFC-compliant CSV parsers for Javascript with 500K+ downloads over 5 years. Projects I've worked on: SharpPcap/Packet.Net (Contibutor) - A C# wrapper and parsing framework for winpcap/libpcap for network packet capturing. pypreprocessor (Author) - A python-only preprocessor that uses c-style preprocessor directives. jQuery-csv (Author) - A jQuery to parse CSV files to javascript code. node-ftpsync (Author) - Intelligent file syncronization over FTP grunt-ftpsync (Author) - A grunt wrapper for node-ftpsync sublime-text-seed (Author) - Cross-platform starter for Sublime Test dev angular2-snippets (Author) - Sublime text snippets for Angular 4+ angular-es6-seed (Author) - Angular 4+ starter using ES6 ng2-markdown (Author) - An Angular 4+ web component I've done everything from designing websites to parsing ARINC-424 data from binary. It doesn't really matter to me. I enjoy the challenge even if that means spending hours digging through technical specifications. Lately I've been playing with Node.js and Angular to do some interesting things. I keep coming back to Stack Overflow because it keeps reminding me of how little I know about software development. What interests me about software development is the potential for improvement as platforms continue to develop and stabilize. I thrive in environments riddled with chaos because those are the places where there is the most potential for improvement and creativity.

Updated on September 18, 2022

Comments

  • Evan Plaice
    Evan Plaice over 1 year

    What I'm trying to do is run a second instance (my personal account) of dropbox.

    I have a second user account setup, Dropbox installed, the Dropbox folder on the second acct shared properly. Everything works exactly as expected if I launch the second instance using:

    C:\Windows\System32\runas.exe /user:*[UserName]* *[DropboxLocation]*
    

    But doesn't work when I try to launch using:

    C:\Windows\System32\runas.exe /savecred /user:*[UserName]* *[DropboxLocation]*
    

    I launched it using CMD and got the following Error Message:

    RUNAS ERROR: Unable to run - *[DropboxLocation]*
    1311: There are currently no logon servers available to service the logon request.
    

    Note: FYI, I have already verified that the first line works in the command prompt without issue.

    What I'm trying to do is save the credentials so I can move the shortcut to the startup folder, making it launch automatically when I login in to my primary account.

    How do I go about fixing this issue and I'm correct in assuming that I should be able to launch an application as a different user on startup without having to enter the password every time (ie. this is the first time I have tried this in Windows 7).

    Note: One potential cause of the issue is that the primary acct exists on a different domain than the secondary acct. I tried both the 'username@domain' and 'domain\username' forms in the 'runas' but yielded the same results (works without, but fails with '/savecred'). The primary acct uses a different domain, the secondary acct uses the computer name as the domain (ie. it's local).

    Update: I'm running Windows 7 Professional SP1