Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Create 1000 sample Accounts

HTVi
TV Discussion Newsgroups

Create 1000 sample Accounts
Jason tres 5/15/2007 2:28:04 PM
Ok, i ran this script that i got from the script repository and it worked.
Only thinkg i need to know how to do now is either figure what the password
is for all these accounts or find a way to change all 1000 of these accounts
passwords without manually doing it. The script i used is below

Set objRootDSE = GetObject("LDAP://rootDSE")

Set objContainer = GetObject("LDAP://cn=Users," & _
objRootDSE.Get("defaultNamingContext"))

For i = 1 To 1000
Set objLeaf = objContainer.Create("User", "cn=applabs" & i)
objLeaf.Put "sAMAccountName", "UserNo" & i
objLeaf.SetInfo
Next

WScript.Echo "1000 Users created."



Re: Create 1000 sample Accounts
KeReleaseMutex[ at ]gmail.com 5/15/2007 11:23:28 PM
On May 16, 12:28 am, Jason tres <Jason t...[ at ]discussions.microsoft.com>
wrote:
[Quoted Text]
> Ok, iranthisscriptthat igotfrom thescriptrepositoryand it worked.
> Only thinkg i need to know how to do now is either figure what the password
> is for all these accounts or find a way to change all 1000 of these accounts
> passwords without manually doing it. Thescripti used is below
>
> Set objRootDSE = GetObject("LDAP://rootDSE")
>
> Set objContainer = GetObject("LDAP://cn=Users," & _
> objRootDSE.Get("defaultNamingContext"))
>
> For i = 1 To 1000
> Set objLeaf = objContainer.Create("User", "cn=applabs" & i)
> objLeaf.Put "sAMAccountName", "UserNo" & i
> objLeaf.SetInfo
> Next
>
> WScript.Echo "1000 Users created."

Hi -

We use justldap for this too. You have 30 days to do it for free.

Wfmo

RE: Create 1000 sample Accounts
neothwin 5/16/2007 4:48:02 AM
Hi,

for /l %a in (1,1,1000) do dsmod user
"cn=applabs%a,ou=users,dc=your,dc=domain,dc=com" -pwd "newpassword"

pls change to correct DN and run in command prompt. If you want to run in a
batch file, pls change %a to %%a.

regards,

"Jason tres" wrote:

[Quoted Text]
> Ok, i ran this script that i got from the script repository and it worked.
> Only thinkg i need to know how to do now is either figure what the password
> is for all these accounts or find a way to change all 1000 of these accounts
> passwords without manually doing it. The script i used is below
>
> Set objRootDSE = GetObject("LDAP://rootDSE")
>
> Set objContainer = GetObject("LDAP://cn=Users," & _
> objRootDSE.Get("defaultNamingContext"))
>
> For i = 1 To 1000
> Set objLeaf = objContainer.Create("User", "cn=applabs" & i)
> objLeaf.Put "sAMAccountName", "UserNo" & i
> objLeaf.SetInfo
> Next
>
> WScript.Echo "1000 Users created."
>
>
>
RE: Create 1000 sample Accounts
Jason tres 5/16/2007 1:23:02 PM
What is the password for these accounts

"neothwin" wrote:

[Quoted Text]
> Hi,
>
> for /l %a in (1,1,1000) do dsmod user
> "cn=applabs%a,ou=users,dc=your,dc=domain,dc=com" -pwd "newpassword"
>
> pls change to correct DN and run in command prompt. If you want to run in a
> batch file, pls change %a to %%a.
>
> regards,
>
> "Jason tres" wrote:
>
> > Ok, i ran this script that i got from the script repository and it worked.
> > Only thinkg i need to know how to do now is either figure what the password
> > is for all these accounts or find a way to change all 1000 of these accounts
> > passwords without manually doing it. The script i used is below
> >
> > Set objRootDSE = GetObject("LDAP://rootDSE")
> >
> > Set objContainer = GetObject("LDAP://cn=Users," & _
> > objRootDSE.Get("defaultNamingContext"))
> >
> > For i = 1 To 1000
> > Set objLeaf = objContainer.Create("User", "cn=applabs" & i)
> > objLeaf.Put "sAMAccountName", "UserNo" & i
> > objLeaf.SetInfo
> > Next
> >
> > WScript.Echo "1000 Users created."
> >
> >
> >
Re: Create 1000 sample Accounts
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/16/2007 5:50:08 PM
And, more appropriately, where are their mailboxes? Seems to me that the OP
had no problem creating the accounts, just in creatingt them with mailboxes.

/Al

"Jason tres" <Jasontres[ at ]discussions.microsoft.com> wrote in message
news:BE8E5FE8-B5F0-4645-B73E-37546E0EAF28[ at ]microsoft.com...
[Quoted Text]
> What is the password for these accounts
>
> "neothwin" wrote:
>
>> Hi,
>>
>> for /l %a in (1,1,1000) do dsmod user
>> "cn=applabs%a,ou=users,dc=your,dc=domain,dc=com" -pwd "newpassword"
>>
>> pls change to correct DN and run in command prompt. If you want to run in
>> a
>> batch file, pls change %a to %%a.
>>
>> regards,
>>
>> "Jason tres" wrote:
>>
>> > Ok, i ran this script that i got from the script repository and it
>> > worked.
>> > Only thinkg i need to know how to do now is either figure what the
>> > password
>> > is for all these accounts or find a way to change all 1000 of these
>> > accounts
>> > passwords without manually doing it. The script i used is below
>> >
>> > Set objRootDSE = GetObject("LDAP://rootDSE")
>> >
>> > Set objContainer = GetObject("LDAP://cn=Users," & _
>> > objRootDSE.Get("defaultNamingContext"))
>> >
>> > For i = 1 To 1000
>> > Set objLeaf = objContainer.Create("User", "cn=applabs" & i)
>> > objLeaf.Put "sAMAccountName", "UserNo" & i
>> > objLeaf.SetInfo
>> > Next
>> >
>> > WScript.Echo "1000 Users created."
>> >
>> >
>> >


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen