how to create windows 11 credential with local computer persistence

Greg Krikorian 20 Reputation points
2024-10-23T23:40:55.67+00:00

Using credential manager, creating a new windows credential sets the persistence to logon session or enterprise depending on the user name and password. How do I set persistence to local computer?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Greg Krikorian 20 Reputation points
    2024-10-28T16:41:19.7633333+00:00

    Jill, Thank you for the information. I ran PS version 7.4.6 as administrator and entered cmd line but got this message "CMDKEY: A duplicate command switch was found on the command line." Removing the ""/persistence"localcomputer" did not generate the error but the credential that was created has a persistence of "Enterprise". Any other suggestion is appreciated.

    2 people found this answer helpful.

  2. Jing Zhou 7,765 Reputation points Microsoft External Staff
    2024-10-28T00:51:56.1166667+00:00

    Hello,

     

    Thank you for posting in Q&A forum.

    To set the windows credential persistence, please open CMD window and run below command:

    cmdkey /add:[IP Address] /user:[Username] /pass:[Password] /persistence:localcomputer

    You can verify the validation by navigating to Control Panel > User Accounts > Credential Manager and checking the credential validation.

     

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

     

    Best regards,

    Jill Zhou

     


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.