View Full Version : RE: Batch Loading Users


Rashmi.K.Y [MSFT]
06-03-2004, 07:13 AM
Hi,

I understand that you want to create multiple users on a standalone system
using scripting. Please find the sample script to create multiple users on
the standalone system.

strComputer = "testcomputer"
Set colAccounts = GetObject("WinNT://" & strComputer & ",computer")
for i=1 to 10
Set objUser = colAccounts.Create("user", "test"&i)
objUser.SetPassword "password"
objUser.SetInfo
next
wscript.echo "10 Test Users created successfully"

The above script creates 10 users accounts test1 to test10 on the
standalone system. But please replace the 'testcomputer' with the name of
your system and 'password' with the required password.

More scripts can be found in the link below:
http://www.microsoft.com/technet/community/scriptcenter/user/default.mspx

Hope your query was answered.

Thank you,

Rashmi

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: Batch Loading Users
| thread-index: AcRI2jzxcewPf1qZTMuTrJsfCPQLTA==
| X-WN-Post: microsoft.public.win2000.security
| From: "=?Utf-8?B?Tm9vbg==?=" <anonymous@discussions.microsoft.com>
| Subject: Batch Loading Users
| Date: Wed, 2 Jun 2004 12:46:03 -0700
| Lines: 9
| Message-ID: <6F6804B1-6DB5-45BB-9357-296783354F86@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.win2000.security
| Path: cpmsftngxa10.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.win2000.security:27813
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.win2000.security
|
| Hello,

I have to add almost 200 users to a 2000 Server system that isn't an
Active Directory server.

I found the AddUsers.vbs and the xls sheet, but the server isn't it's own
domain, so it tends to fail.

Is there a way to manipulate the .vbs file or do I need to look elsewhere?

Thanks
|