Methods to add users without a CMD command line: API Add Users and Shell.users

Source: Internet
Author: User

Before the HTML "TARGET=_BLANK>XP using the Control Panel CPL file left the back door, and then with the. cpl file Plus account technology, LCX really very powerful

Today, we studied the user Control Panel file nusrmgr.cpl, found that the call is shell.users to add the user, it also calls the Wscript.Shell, Shell.Application, Shell.localmachine these three components. But add the user, this one shell.users is enough. It may also be a new way to add users, perhaps by deleting Net.exe and not ADSI. The code is as follows:

Js:

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

vbs

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

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.