Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CMDKEY: Windows XP: Credentials Can not be saved from this logon session

Posted on 2014-10-28
4
Medium Priority
?
4,140 Views
Last Modified: 2014-10-29
Hello everyone!

I have a need to edit the local credential manager on several thousand Windows XP systems via script to add in a set of credentials.  Since Windows XP does not include cmdkey.exe by default, I have copied it to a local folder from Server 2003.

When I run "cmdkey /generic:TERMSRV/server.domain.com /user:DOMAIN\username /pass:password"  I receive the following error:
"CMDKEY: Credentials cannot be saved from this logon session"

I have tested with the users logon credentials (local admin) as well as by using runas /user:domain\domainadmin however both return the same error message.  I have a test machine that is just a base install of Windows XP and the commands run fine.

Any ideas on what could be blocking this?

Thanks!!
0
Comment
Question by:advserver
  • 2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
McKnife earned 2000 total points
ID: 40409237
There are GPOs that disallow credential saving, those seem to be active. See http://www.itworld.com/article/2779749/windows/how-to-disable-credential-caching-on-client-computers.html
Easily found out if you run rsop.msc at the client.
0
 
LVL 4

Author Comment

by:advserver
ID: 40409346
McKnife,  Thank you very much for that info!  I found that the policy did exist so I setup a test OU and am working on copying the policies to it but without that setting.  I will reply back hopefully soon with the test results.
0
 
LVL 4

Author Closing Comment

by:advserver
ID: 40410687
Thank you for your help.  I had reviewed the policies but there are so many settings being applied that I overlooked it.  After removing the setting, the command worked perfectly.  I also tested it via logon script and it worked there as well.  Thanks again!
0
 
LVL 57

Expert Comment

by:McKnife
ID: 40410711
You're welcome
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question