Solved

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

Posted on 2014-10-28
4
3,303 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 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

828 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