Batch password change

Greg3039 -  
little boy62 Posted messages 4393 Registration date   Status Member Last intervention   -
Hello, I’d like to know if it’s possible to create a batch script (.bat) that changes the PC’s password. I know it can be changed via cmd but with a .bat I don’t know how to proceed...
I have a second question: Is it possible to retrieve the password with a batch script and automatically send it by email once retrieved
Thanks in advance

1 answer

  1. barnabe0057 Posted messages 14329 Registration date   Status Contributor Last intervention   4 930
     
    Hello,

    Yes, it’s possible with the NET USER command, here’s an example:

    net user Greg3039 cocorico

    This is to change the password of the account Greg3039 to cocorico.

    For the second question the answer is no, we can certainly send an email but we cannot retrieve a password.

    “Artificial intelligence is defined as the opposite of natural stupidity.”
    0
    1. Greg3039
       
      Thank you very much!
      0