[THIN] Ad: Re: User creation

  • From: jrb@xxxxx
  • To: thin@xxxxxxxxxxxxx
  • Date: Tue, 27 Aug 2002 17:28:50 +0200


I have also had problems with this, have tried some commands - but are very
interrested in getting a script which does this :

So far I have tried this one called 'createuser.bat' with the commandline
"createuser <username> <locationgroup> <Full name>

net user /add %1 %1 /active:yes /expire:never /Fullname:"%3"
;creates the user in AD, and inserts the full name in the AD properties,
and sets password=3Dusername
net group %2 %1 /add
;adds the user in the group written in the command line
net group AS400 %1 /add
;adds the user to the AS/400 security group
md \\server20\profiles\%1
;creates the user profile directory
md \\server20\d$\brukere\%1
;creates the user profile home directory
cacls \\server20\profiles\%1 /e /g mydomain\%1:F
;sets permissions for the user to "Full rights" on the users profile
directory
cacls \\server20\d\brukere\%1 /e /g mydomain\%1:F
sets permissions for the user to "Full rights" on the users home directory

But - is it possible to do more automtically ? Like adding the user to a
OU, entering what is the users home-dir and terminal-server profile  dir
(in AD).. and other options  ?

post your scripts ;)

Jan Rune Bj=F8rkeng





---------------------------------------------------------------------------=
----
This verifies that this e-mail has been scanned for virus and deemed virus-=
free=20
according to F-secure Content Scanner 5.0
Tue, 27 Aug 2002 17:28:50 +0200 GMT
---------------------------------------------------------------------------=
----



===================================
This weeks Sponsor:
ThinPrint
- High resolution, DRIVER FREE PRINTING with no loss of quality in color.
- Removes print spooling and rendering tasks from your terminal server.
http://www.thinprint.com
===================================
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: