Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

1 Answer 1

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.