Solved

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

Posted on 2014-10-28
4
2,883 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 53

Accepted Solution

by:
McKnife earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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 53

Expert Comment

by:McKnife
Comment Utility
You're welcome
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now