Home > OS >  Masters please comment about through the bat file to modify the computer administrator password
Masters please comment about through the bat file to modify the computer administrator password

Time:09-26

Now I have such a business needs,
There is a group of computers need to batch computer name according to modify the local Administrator computer Administrator password, password rules is P @ ss and "computer name", for convenience, now want to write a batch file (BAT), perform directly modify after the batch file how to write, please?
I only know that modify the grammar of the password for:
Net user Administrator P @ ss
But behind the P @ ss how to join computer name I have a little confused, but,

CodePudding user response:

To get the local computer name

CodePudding user response:

By check information and their error solved:

The code is as follows:

@ echo off

Net user administrator/active: yes

Net user administrator P @ computername ss % %

pause

CodePudding user response:

Good method, watch
  • Related