Create accounts
Top  Previous  Next


The "new" button is a convenient way to run SetupBatcher scripts to create single server accounts from within SetupExplorer. The advantage with running a script is that you, besides just creating an account, automatically can add the new account to groups, set properties, create directories, set permissions etc., all at once.

The most common usage is probably to use a SetupBatcher script to bulk create accounts etc. when installing the server, then run the same script from the "new" button in SetupExplorer to add single accounts when needed.

Notice that the Windows SAM explorer new account dialog uses NT4 commands. This works for basic tasks on both NT4 and 2000/2003 server, but for pure 2000/2003 server scripts, use the user definable xD buttons new account dialog instead.

New account dialog

Click the "new" button to open the new account dialog.

Notice: it is not possible to create accounts in workstation mode, only in domain and standalone mode.



·The "script" field contains the name of the SetupBatcher script that will be executed when the account is created. Click the "change" button to select another SetupBatcher script. See also How to change server name in the default script below.  
·The gray index number top right of each field indicates to which SetupBatcher [Data] column each property is copied to. When creating your own script you must (1) make sure that commands and settings in the script used refers to correct columns, most important are of course account name in column 4 and password in column 5, (2) set "BatchSettings.MarkerCol" to 8 or higher than 20 in [Settings] - columns 1-7 (filled with main properties) and 10-19 (filled with extra properties) can not be used for markers.  
·Click "Generate" to create a unique user name from name or display name. Notice: Letterpicker SamAccount name generator settings must be present in the script used. If no name is entered before clicking "Generate", the letter "a" will be used. If the account "a" exists, the new account will be named "a2" etc.  
·Click "Random" to generate a password. The password format is defined in the options dialog under "SetupExplorer" / "Password generator". The syntax is the same as for pronounceable passwords in SetupBatcher.  
·When finished, click "OK": (1) the specified script is loaded in the SetupBatcher editor, (2) data in the numbered fields in the SetupExplorer dialog are copied to corresponding columns in the [Data] section of the SetupBatcher script and (3) the script is executed.  
·A password sheet printer dialog will automatically be displayed when a new account has been created or when a password has been changed in SetupExplorer.  

How to change server name in the default script

By default the selected script is "ntacc.cnu" - when you first click "new" you will probably see "\\YOURSERVER not found" just below the script field, this is because the default NetBIOS server name in the script "ntacc.cnu" is "\\edu8".

1.Click the "SetupBatcher & NTreport" tab.  
2.Click file / open, select "ntacc.cnu".  
3.In the [Machines] section, replace "\\edu8" with the NetBIOS name of your server.  
4.Click file / save.  

Extra fields


·The fields under the "extra" tab are defined in the options dialog under "SetupExplorer" / "New account extra fields".  
·Each label definition ends with the "§" character.  
·An "&" character before a character sets field hot key - example: &phone -> "phone" (press alt+p), ph&one -> "phone" (press alt+o).  
·A "$" character before a label means that it cannot be left blank; SetupExplorer will keep asking until something is entered in the field. (Indicated with a "*" character in the end of the label).  
·A "0" (zero) character will disable and hide the field.  

Example

Definition string =
&Street:§&City:§&Zip:§S&tate:§ Countr&y:§0§$&Phone:§0§0§0§

Creates a form like this:



Notice the "*" character after "Phone:" - this field cannot be left empty.