Command line A new method of adding an account number (Shell.users) _dos/bat

Source: Internet
Author: User
But add the user, this one shell.users is enough. This may also be a new method of adding a user, possibly with the deletion of Net.exe and no ADSI. The code is as follows:

Js:
Copy Code code as follows:

var o=new activexobject ("Shell.users");
Z=o.create ("test");
Z.changepassword ("123456", "")
Z.setting ("accounttype") = 3;


vbs
Copy Code code as follows:

Set o=createobject ("Shell.users")
Set z=o.create ("test")
Z.changepassword "123456", "" "
Z.setting ("AccountType") =3


Permission level

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

Everyone used to add accounts using the net user command
Through net LOCALGROUP/ADD administrators ABC adds ABC to the Administrators user group, which enables the promotion of ordinary users to administrator users. For more information on cloud-dwelling communities.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.