0

I'm trying to create a batch file that will create Generic credentials in WIN7. I have come up with the following code but I'm not seeing any new entries. Any thoughts on what I'm doing wrong?

cmdkey /generic:computername /user:domain\userName /pass: Password
  • Are running the script as an Administrator and elevating the permissions of the process? – Ramhound Aug 23 '17 at 23:25
  • You are running this on the DC I assume? You don't assign any user groups...that also isn't how you add a domain user.... – Ramhound Aug 23 '17 at 23:46
  • Can you explain more what you are trying to do? It looks like you might be using a command for something it doesn't do. – Appleoddity Aug 24 '17 at 1:14
  • The Generic credentials are to allow an RDP shortcut to have the credentials saved to the shortcut. So the user doesn't have to enter the remote PC user name and password. [link](techrepublic.com/blog/windows-and-office/… credentials</h2>) – Shawn Aug 24 '17 at 2:31
  • After looking at my code with fresh eyes the next day I realized I had space between "/ pass: Password", when it should have been "/pass: Password". – Shawn Aug 25 '17 at 1:13
0

After looking at my code with fresh eyes the next day I realized I had space between / pass

"/ pass: Password"

when it should have been

"/pass: Password". 

The script works but, I'm confused to why it did create the generic credentials without a password.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.