SoFunction
Updated on 2025-04-08

A new way to add an account on the command line

But if you add users, this one is enough. Then maybe in addition to deleting and not using adsi, this may also be a new way to add users. The code is as follows:

js:
Copy the codeThe code is as follows:

var o=new ActiveXObject( "" );
z=("test") ;
("123456","")
("AccountType")=3;


vbs:
Copy the codeThe code is as follows:

Set o=CreateObject( "" )
Set z=("test")
"123456",""
("AccountType")=3


Permission level

0:"Guests"
1:"Users"
2:"Power Users"
3:"Administrators"

In the past, everyone used the net user command to add accounts
Add abc to the administrators user group through net localgroup /add administrators abc to achieve the promotion of ordinary users to administrator users. For more information, please refer to my article.