Welcome to ServerForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

VBScript to create new users

 
   Windows Server (Home) -> Windows Server Scripting RSS
Next:  Script by location  
Author Message
IT-Guy

External


Since: Jul 21, 2005
Posts: 1



(Msg. 1) Posted: Thu Jul 21, 2005 8:35 pm
Post subject: VBScript to create new users
Archived from groups: microsoft>public>windows>server>scripting (more info?)

Hi,
I'v been asked to create more than 200 new users account & their exchange
mailboxes. I have all the information in Excell file
First Name
Last Name
Initials
I wonder if there is any way to write a VBScript how read the user
infromation from the Excell file and create the USER Account & MailBox in our
AD.
thanks for your help

Windows platform is: windows server 2003 & Exchange Server2003

 >> Stay informed about: VBScript to create new users 
Back to top
Login to vote
Tue, Nguyen Phuoc

External


Since: Jan 31, 2007
Posts: 1



(Msg. 2) Posted: Wed Jan 31, 2007 11:06 pm
Post subject: Re: VBScript to create new users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Richard,

Your script is really handy and helpful.

I do modified the script to add my full name to the DisplayName to user's
properties, and it does show on the Start menu of WinXP when user login, but
it do not show the full name in the list of user under "Active Directory
Users and Computers" of WIn2003, instead, the same value of the user name is
displayed.
Please note that the full name is feed from manual Excel input.
Please help!

Many thanks

"Richard Mueller [MVP]" wrote:

>
> "IT-Guy" <ITGuy DeleteThis @discussions.microsoft.com> wrote in message
> news:022402FA-1CEA-4726-8901-41679C165EB4@microsoft.com...
> >
> >
> > "Richard Mueller [MVP]" wrote:
> >
> > > IT-Guy wrote:
> > >
> > > > Hi,
> > > > I'v been asked to create more than 200 new users account & their
> exchange
> > > > mailboxes. I have all the information in Excell file
> > > > First Name
> > > > Last Name
> > > > Initials
> > > > I wonder if there is any way to write a VBScript how read the user
> > > > infromation from the Excell file and create the USER Account & MailBox
> in
> > > our
> > > > AD.
> > > > thanks for your help
> > > >
> > > > Windows platform is: windows server 2003 & Exchange Server2003
> > >
> > > Hi,
> > >
> > > I have not worked with Exchange, but I have a sample VBScript program to
> > > create users from an Excel spreadsheet linked here:
> > >
> > > http://www.rlmueller.net/CreateUsers.htm
> > >
> > > You possibly can modify this for your purpose.
> > >
> > > --
> > > Richard
> > > Microsoft MVP Scripting and ADSI
> > > Hilltop Lab web site - http://www.rlmueller.net
> > > --
> > >
> > > thanks Richard for your help..
> > I modified the Script and its working fine. The other think that I noticed
> > is the Display Name is not in the same format that I hade in my Active
> > directory. When I manually create new user the display Name format is Last
> > Name, First Name. But when I do it by using the Script the Display Name is
> > Empty!! Is there any way to get the display name format (Last Name, First
> > Name) thanks for you advice and help.
> > >
>
> The GUI constructs the display name for you from the values you assign for
> other attributes. The name of the attribute is displayName. My example does
> not assign a value to this, but the script can be modified to do this. You
> could have the script construct the value the way the GUI does, or use a
> formula in the spreadsheet to contruct the value in a new column.
>
> To match what happens in the ADUC GUI, you could assign displayName with
> something like this:
>
> objUser.displayName = strFirst & " " & strMiddle & ". " & strLast
>
> I used the variable names from my example script. This statement could be
> added to the script where the other attribute values are assigned. For the
> format you describe, you can use:
>
> objUser.displayName = strLast & ", " & strFirst
>
> --
> Richard
> Microsoft MVP Scripting and ADSI
> Hilltop Lab web site - http://www.rlmueller.net
> --
>
>
>

 >> Stay informed about: VBScript to create new users 
Back to top
Login to vote
VBScript to create new u

External


Since: Jul 06, 2007
Posts: 1



(Msg. 3) Posted: Fri Jul 06, 2007 10:52 pm
Post subject: Re: VBScript to create new users [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Tue, Nguyen Phuoc" wrote:

> Richard,
>
> Your script is really handy and helpful.
>
> I do modified the script to add my full name to the DisplayName to user's
> properties, and it does show on the Start menu of WinXP when user login, but
> it do not show the full name in the list of user under "Active Directory
> Users and Computers" of WIn2003, instead, the same value of the user name is
> displayed.
> Please note that the full name is feed from manual Excel input.
> Please help!
>
> Many thanks
>
> "Richard Mueller [MVP]" wrote:
>
> >
> > "IT-Guy" <ITGuy RemoveThis @discussions.microsoft.com> wrote in message
> > news:022402FA-1CEA-4726-8901-41679C165EB4@microsoft.com...
> > >
> > >
> > > "Richard Mueller [MVP]" wrote:
> > >
> > > > IT-Guy wrote:
> > > >
> > > > > Hi,
> > > > > I'v been asked to create more than 200 new users account & their
> > exchange
> > > > > mailboxes. I have all the information in Excell file
> > > > > First Name
> > > > > Last Name
> > > > > Initials
> > > > > I wonder if there is any way to write a VBScript how read the user
> > > > > infromation from the Excell file and create the USER Account & MailBox
> > in
> > > > our
> > > > > AD.
> > > > > thanks for your help
> > > > >
> > > > > Windows platform is: windows server 2003 & Exchange Server2003
> > > >
> > > > Hi,
> > > >
> > > > I have not worked with Exchange, but I have a sample VBScript program to
> > > > create users from an Excel spreadsheet linked here:
> > > >
> > > > http://www.rlmueller.net/CreateUsers.htm
> > > >
> > > > You possibly can modify this for your purpose.
> > > >
> > > > --
> > > > Richard
> > > > Microsoft MVP Scripting and ADSI
> > > > Hilltop Lab web site - http://www.rlmueller.net
> > > > --
> > > >
> > > > thanks Richard for your help..
> > > I modified the Script and its working fine. The other think that I noticed
> > > is the Display Name is not in the same format that I hade in my Active
> > > directory. When I manually create new user the display Name format is Last
> > > Name, First Name. But when I do it by using the Script the Display Name is
> > > Empty!! Is there any way to get the display name format (Last Name, First
> > > Name) thanks for you advice and help.
> > > >
> >
> > The GUI constructs the display name for you from the values you assign for
> > other attributes. The name of the attribute is displayName. My example does
> > not assign a value to this, but the script can be modified to do this. You
> > could have the script construct the value the way the GUI does, or use a
> > formula in the spreadsheet to contruct the value in a new column.
> >
> > To match what happens in the ADUC GUI, you could assign displayName with
> > something like this:
> >
> > objUser.displayName = strFirst & " " & strMiddle & ". " & strLast
> >
> > I used the variable names from my example script. This statement could be
> > added to the script where the other attribute values are assigned. For the
> > format you describe, you can use:
> >
> > objUser.displayName = strLast & ", " & strFirst
> >
> > --
> > Richard
> > Microsoft MVP Scripting and ADSI
> > Hilltop Lab web site - http://www.rlmueller.net
> > --
> >
> >
> >
 >> Stay informed about: VBScript to create new users 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
need to create DNS records in AD via vbscript... can i? - yup. how can i simply create an A record in an AD integrated zone on a 2003 server? thank you in advance

How to create a recipient Policy with VBScript is it possi.. - Hi All I tried posting this in microsoft.public.scripting.vbscript with no responce, is this simply not posible ? Does anyone know how to write an octet string to AD using VBScript ? I'm tring to create a new recipient policy in exchange and one o...

VBScript: Can't Create Object error - I am getting a "Microsoft VBScript runtime error: ActiveX component can't create object: 'GetObject'" In the event logs getting: DCOM error, Event ID:10010, "The server xxxx.. did not register with DCOM within the required timeout. &q...

add remote users by using vbscript - Hi, I'm trying to rename a Windows 2000 computer in a NT 4.0 domain by vbscipt code. But the code as far as I found is not compatible with Windows 2000. Appreciate any help, thanks. ErsinC

Create Users Using IIS - This may be more of an IIS question than a scripting question, but here goes: I would like to create a webpage which we can use to create users in a Windows 2000 Active Directory domain. My intention is to offer, for example, drop-down lists for our..
   Windows Server (Home) -> Windows Server Scripting All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]