Shell. Users)

Source: Internet
Author: User

However, if you add a user, this shell. Users is enough. In this case, net.exe and ADSI are deleted, which may be a new method for adding users. CodeAs follows:

JS:Copy codeThe Code is as follows: var o = new activexobject ("shell. Users ");
Z = O. Create ("test ");
Z. changepassword ("123456 ","")
Z. Setting ("accounttype") = 3;

Vbs:Copy codeThe Code is 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"

In the past, the net user command was used to add accounts.
Add ABC to the administrators user group through net localgroup/Add administrators ABC to improve normal users to administrator users. For more information, seeArticle.

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.