Learning Adsi-part i:adding Users to W2K

Source: Internet
Author: User
Tags configuration settings
Learning Adsi-part i:adding Users to W2K
by Remie Bolte
Print this article
Email this article to a colleague
Introduction
As the desire and need for the Internet grew, Microsoft created new products and modified their old ones. Windows OS required features that gave developers and administrators the option to perform tasks remotely. Microsoft responded in I with Active Directory Services Interface (ADSI). ADSI provides a single set of directory interfaces to accessing and managing network resources. instance, an administrator could change user permissions or add a user to a network, independent of network environ ment, using a WEB interface or a VB program.

Caveat
Please keep in mind this are going to modify the basics of the Windows NT security model. You should is very alert when dealing with ADSI. Keep in mind this a simple mistype could mean reformatting and reinstalling system. Don ' t does it on a operational machine! Please know this I have tried to make the following code as accurate as possible. Yet I can ' t guarantee their outcome. So please don ' t just copy and paste. I know it is very attractive but it could cause your to spend the next couple of hours looking at a very appealing Windows Installation screen.

Windows Security Account Manager
The security account Manager (SAM) are the portion of Windows which registers and holds all user information and knows all The default configuration settings. Our [a] with SAM entails the process of creating a user. This is applies to Windows NT 4.0.
Note:in the following code to work, administrator rights are required.

Adding A User to the SAM
<%
1. AddUser "NewUser", "MyDomain"
2.
3. Sub AddUser (Struser,strdomain)
4. Dim Computer
5. Dim User

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.