Page 1 of 1 1
Topic Options
#60354 - 2001-11-07 11:11 AM Create Win2k user with exchange 2000
Anonymous
Unregistered


I have seen some "simple" scripts that use ADSI to create users but can one also use this to create the exchange mailbox and terminal server profile for a user. Where would one find a list of programmable objects for the AD?

Help greatly appreciated.
Scott

Top
#60355 - 2001-11-07 05:09 PM Re: Create Win2k user with exchange 2000
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Scott,

You will find some scripts that does this - http://cwashington.netreach.net

Right from the source at - http://www.microsoft.com/windows2000/en/professi onal/iis/default.asp?url=/WINDOWS2000/en/professional/iis/htm/asp/adsi0aat.htm

SDK - http://www.microsoft.com/NTWorkstation/downloads/Other/ADSI25.asp

Some other links that maybe useful... http://msdn.microsoft.com/scripting
http://cwashington.netreach.net/main_site/default.asp?topic=news
http://wsh.glazier.co.nz
http://www.microsoft.com/WINDOWS2000/library/howitworks/management/winscrwp.asp
http://www.winscripter.com[/URL]


HTH,

- Kent

[ 07 November 2001: Message edited by: kdyer ]

_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#60356 - 2001-11-08 02:12 AM Re: Create Win2k user with exchange 2000
Anonymous
Unregistered


Thanks for that...some super bable stuff on MSDN there.

How do I find the properties for an object...i.e I wish to set email address, terminal services profile etc for a win2k user. I can only go on what other properties people here have used...where does one "specifically" find a list of them?

Cheers
Scott

Top
#60357 - 2002-07-05 06:12 AM Re: Create Win2k user with exchange 2000
Yvonne Offline
Fresh Scripter

Registered: 2002-07-01
Posts: 10
Loc: Brunei
I have vb script to create exchange mailbox but not TS profile.

The code is as follow:
Dim sMBXStoreDN, suserid
Set objOU = GetObject("LDAP://OU=test,dc=jis,dc=edu,dc=bn")

'Create the User Account
Set objUser = objOU.Create("User","cn=sample")

'Set Account properties
objuser.Put "samAccountName", sample
objUser.Put "sn", sample
objUser.SetInfo

'Create Mailbox
sMBXStoreDN= "LDAP://JISFNP01/CN=Staff JIS," & _
"CN=First Storage Group," & _
"CN=InformationStore,CN=JISEXCH01,cn=Servers," & _
"CN=First Administrative Group,CN=Administrative Groups," & _
"CN=Jis Organization,CN=Microsoft Exchange," & _
"CN=Services,CN=Configuration,DC=jis,DC=edu,DC=bn"

Set objMailbox = objuser

'create a milbox for the recipient
objMailbox.CreateMailbox sMBXStoreDN

objuser.Setinfo

wscript.echo "user mailbox created successfully"

Top
#60358 - 2002-07-05 04:14 PM Re: Create Win2k user with exchange 2000
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
You can't use Exchange ADSI to create Exchange 2000 mailboxes, it was written for Exchange 5.5 (and less). You can use the CDOEXM interface instead, although I have no resources to point you to at this time.

[ 05 July 2002, 16:39: Message edited by: Chris S. ]

Top
#60359 - 2002-07-05 04:37 PM Re: Create Win2k user with exchange 2000
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Here are a couple more links for you to research...

HOW TO: Create a Mailbox-Enabled Recipient by Using C# .NET (Q313114)
Microsoft Exchange 2000 SDK

Top
#60360 - 2002-07-05 06:39 PM Re: Create Win2k user with exchange 2000
Anonymous
Unregistered


As far as editing Terminal Server settings using ADSI you are out of luck. The TS properties are stored in binary format and difficult to read.

System Tools (makers of Hyena) have this utility that is very good - TSCmd

HTH,
Michael.

Top
#60361 - 2002-07-06 09:55 AM Re: Create Win2k user with exchange 2000
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Not totally out of luck, you just need a COM Object to do so..

Ref. - http://kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=002627

Source - http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=27822&lngWId=1

Binaries -
http://members.ozemail.com.au/~chrismat/kix/addons/tsusrcfg.zip

Thanks to Ceej - http://members.ozemail.com.au/~chrismat/scripts.html

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#60362 - 2002-07-08 06:54 AM Re: Create Win2k user with exchange 2000
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
and thanks to Kent for compiling the source for that TSUserConfig DLL [Big Grin]

cj

Top
#60363 - 2002-07-08 10:02 AM Re: Create Win2k user with exchange 2000
Yvonne Offline
Fresh Scripter

Registered: 2002-07-01
Posts: 10
Loc: Brunei
Hi Chris

But I have no problem creating Bulk of new w2k users with their mailbox enabled.

Regards

Top
#60364 - 2002-07-08 10:41 AM Re: Create Win2k user with exchange 2000
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yvonne, did you get solved that profile-thingie?

cheers,
_________________________
!

download KiXnet

Top
#60365 - 2002-07-09 09:37 AM Re: Create Win2k user with exchange 2000
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Yvonne,

Went to the sites:

http://msdn.microsoft.com
http://www.slipstick.com/outlook/ol2002.htm
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=microsoft.public.outlook.installation
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=microsoft.public.outlook.general
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=microsoft.public.outlook

Did not see anything with regards to running this quietly.

Hmmm..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.06 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org