Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to add network login credentials for applications running
'as administrator' by using cmdkey

 To create domain credentials:
cmdkey /add:targetname /user:username /pass:password

But getting this error when running under admin profile :

CMDKEY: Credentials cannot be saved from this logon session.

Is there possibility to store network credentials for applications running 'as administrator' ?

share|improve this question

migrated from Nov 13 '12 at 8:32

This question came from our site for professional and enthusiast programmers.

I also met the same problem on an WindowsXP computer, and I found the solution through google:
just run gpedit.msc, location to the
"Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\"
branch, and set the policy
"Network Access: Do not allow storage of credentials or .NET Passports for network authentication"
value to Disable.
(if you can't change the value even you logon as an administrator, it means this policy is defined by GroupPolicy, you need to contact your Domain Administrator to change it).

Here's the link:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .