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?