CMDKey Syntax

I want to use CMDKEY to store credentials because I am testing this command, but I can't seem to get the syntax right. What would the command line look like if I wanted to connect with the following values:

Domain: acme
User: john.smith
password: secret
Target Computer: server01

Then, what would it look like to remove the stored information?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jhiebAuthor Commented:
Thank you. I already have the references you mentioned. Something seems erroneous in the hyperlinks so that is why I posted my question and that is why my post asks for an example. Where is Server01 in the actual example they show via the first heyperlink? Anyway, if someone can actually give me a working example with the values I gave above I would sure appreciate it. Thank you.
The computer or domain name that this entry will be associated with.
First link:
cmdkey /add:server /user:mikedan /pass:Kleo
Second Link: Looks correct & you can find server01 as TargetName
cmdkey /add:server01 /user:mikedan /pass:Kleo
jhiebAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.