Solved

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

Posted on 2014-10-28
4
3,500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 54

Accepted Solution

by:
McKnife earned 500 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 54

Expert Comment

by:McKnife
ID: 40410711
You're welcome
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

710 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