I have a software build and deployment service installed on a computer. The service has been setup to run as the SYSTEM account.
Since the service deploys to a number of other machines and requires the passwords of the machines to connect, I would like cache the credentials for the remote machines using the Windows credential manager.
How do I achieve this when the target account is the SYSTEM account?
I would like a solution that does not require me to download any third party tools and works using the default Windows 10 architecture.
Web searches for the problem came up with results on how to clear the credentials for other accounts.
Best Answer
Use the built-in utility
cmdkey
to add the credentials.Download and use the Microsoft Sysinternals utility PsExec:
psexec -s
to run acmdkey
as SYSTEM. Technically, it's Microsoft, therefore not third-party.