Visitor Stats

Visits today:2
Visits yesterday:46
Visits in this month:1166
Visits total:115235
Bots today:1

9. Commandline parameters


The program MassUser can be used with commandline parameters, so you can create a batch procedure.

9.1. The program can be started with


start the program interactive.

MassUser par=<filename>

start the program with alternative settings, interactive

MassUser sel=c dn=<dn> [options]

start MassUser, search context is <dn>

MassUser sel=o dn=<dn> oc=<class> [options]

start MassUser, search object, dn=object dn, oc is class/attribute

MassUser sel=f fn=<filename> [options]

start MassUser, search selection file, use file <filename>

MassUser @commandfile

starts MassUser with the parameters in the file <commandfile>

If a parameter value contains a space, put the whole parameter between " ". e.g. "dn=my work.hbw"

All parameters are non-case sensitive.


c,o,f context/object/file


full dn of the context or object


object class, value must be in the homes.ini-file of user.


filename, can contain a drive/path

9.2. options:


filename with settings for homes. If filename is given without a path, the program will look in the current-directory, if the file doesn't exist, then the program will look in the program directory. Default value = default.set, do not enter a path!


You have to be logged in into the tree, force the use of tree with name <treename>


do a test run, if omitted then "normal run"


log-filename. If the logfil exists then the new log-data is appended to the file, otherwise a new file is created. Default value is homes.log in program directory,
filename may contain drive/path.


continue program on error. Default=N. If cont=Y the program saves the log-data to the log-file and terminates.


In some cases this is unc path to the home directory base-path.


If option default server is on and not use home directory server as default server, you have to give this value.


If option create domain user is on, this is the templeate to use.


If scr=N then the program is minimised to the taskbar. Do not use with MassUser par=<filename>


Select the def-file for setting groups/roles alias etc, if this parameter is given, then the program assumes use def-file option in user-page.


Used by create extra-directory as the "base"path


Program doesn't start, usefull for debugging.

9.3. Commandfile

The program will read the command file for its start-parameters. Put all parameters on a new line, do not enclose parameters with ".." even it there as spaces in the parameter value. The parameters are non-case sensitive.

9.4. sample file


use context


the full-dn of the context


use settingsfile test.set


continue on error


use mylog.log as the log-file


use given path as the "home-directory" path


start minimized

9.4.1. Sample commandline parameters and LDIF-selection file with home directory create.

If you want to use a LDIF or CFL/CVS file as a selection file and at the same time you want to use that file for creating a homedirectoy or set the userspace/diskquota's, you have to create a set-file, or you have to change the default settings of the program. Save the file in the program directory.

9.4.2. Create a set-file of change default settings.

Start the program interactively, select a LDIF of CFL-file (this can be a dummy file), make all your selections and set "Use Home directory From Selection File" if you want to use the file as a definition file for home directories. Save the set-file (the red-"floppy" button on the task-bar. If you save the file under the name default (the program adds .set) then you change the default settings of the program, if you don't want to do that, save the file under another name. (like LDIF(.set) of CFL(.set)).
Start the program now with the proper parameters, e.g.
MassUser sel=f fn=test.ldif test=y log=mytest.log par=ldif.set
The program will use the file test.ldif as a selection file, do a test-run, save the log-data to the file mytest.log and will use the settings from ldif.set.
MassUser sel=f fn=test.ldif test=y log=mytest.log

This will do the same, except it will use default.set, or if default.set doesn't exist, it will use the program internal defaults.