Page 1 of 1 1
Topic Options
#26913 - 2002-08-11 06:53 PM Create user into Domain and Exchange
ladybird Offline
Fresh Scripter

Registered: 2002-08-11
Posts: 19
I believe someone has created this script this before.

I am looking a script which is helping me on daily administration:

1. Create user account which is the information from *.csv files
2. Create a home folder
3. Create the exchange account

As well:
4. Disable account if the user is resigned
5. Hide the exchange account.

Can someone help me to point this out?

Thanks in advance

Thanks in advance

Top
#26914 - 2002-08-11 07:26 PM Re: Create user into Domain and Exchange
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You would get a lot of scripts if you would search for 'create user', 'outlook exchange', 'remove user', 'home share'.

A selection is posted below:
ADSI Create User with Kixtart...
Create User Share and Assign Permission
UserCreate() - Creates a new user account.
Create Win2k user with exchange 2000
_________________________
There are two types of vessels, submarines and targets.

Top
#26915 - 2002-08-11 07:30 PM Re: Create user into Domain and Exchange
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I just need to ask are you doing this remotely.
also, does the computer you are running on have exchange admin.

basically the job is just:
1. Create user account which is the information from *.csv files
you will need to:
open() -open the file
readline() -read the file
split() -divide the info
shell -call net user add

2. Create a home folder
shell -call for rmtshare. if it's the server you are currently on, net share is enough
writeline() -write the users and related info to a cvs-file for exchange admin.
while loop -you will propably want to do this for more than one user at a time

3. Create the exchange account
you see the correct syntax of the cvs-file you will do on the user creation by outputting some mailbox info from the admin to cvs.
as you then have constructed the file, now you just have to call the admin.exe with the file as parameter.
simple... there might be a need for additional /import or something.

isn't it simple?
_________________________
!

download KiXnet

Top
#26916 - 2002-08-13 04:00 AM Re: Create user into Domain and Exchange
ladybird Offline
Fresh Scripter

Registered: 2002-08-11
Posts: 19
Let me try it...

Thanks again

Top
#26917 - 2002-08-13 04:03 AM Re: Create user into Domain and Exchange
ladybird Offline
Fresh Scripter

Registered: 2002-08-11
Posts: 19
I am still using NT Domain and Exchange 5.5.

I am rather new in Kixtart, any sample?

Thanks

Top
#26918 - 2002-08-13 04:09 AM Re: Create user into Domain and Exchange
ladybird Offline
Fresh Scripter

Registered: 2002-08-11
Posts: 19
Lonkero,

Yes, i am running remotely and the system doesn't has exchange admin.

Can i copy admin.exe only?

Thanks

Top
#26919 - 2002-08-13 07:24 AM Re: Create user into Domain and Exchange
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ladybird, no it will not function.

installing the admin software is no big deal.
well, you could also install some remote tools ( I used them before found kix) to get to remote command line.

anyway, copying just the exe should not work.
_________________________
!

download KiXnet

Top
#26920 - 2002-08-15 12:42 AM Re: Create user into Domain and Exchange
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
If all you want are setting up accounts, home drives, and Exchange accounts, and removal of same - try this free 5-user utility UserManageNT Lite. Easy to use, can set up to work in multiple domains, and can use multiple defined templates for users to join all appropriate domain groups. Can also be utilized for managing account deactivation.

Of course, if trying to work with hundreds of id's at one time, then a 5-user version is not very useful...

http://www.tools4ever.com/

Bill

Top
#26921 - 2002-08-16 12:23 AM Re: Create user into Domain and Exchange
ladybird Offline
Fresh Scripter

Registered: 2002-08-11
Posts: 19
Thanks.

I will choose to customize the script to suit our environment.

Top
Page 1 of 1 1


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

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

Generated in 0.038 seconds in which 0.021 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