Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-10-28
4
Medium Priority
?
3,914 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 56

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 56

Expert Comment

by:McKnife
ID: 40410711
You're welcome
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

715 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