Getting started
Top  Previous  Next


Please be careful - SetupBatcher is a powerful tool - please evaluate all scripts carefully on a small number of machines / registry settings / directories / accounts etc. before doing any large scale operations.

Before you start using SetupBatcher you should create a full backup or at least an ERD (Emergency Repair Disk). You must also learn how to restore your system from the backup or the ERD.

How to create an ERD or a backup

·2003: Start>Programs>Accessories>System Tools>Backup>Automated System Recovery Wizard  
·XP: Start>Programs>Accessories>System Tools>Backup>Backup Wizard  
·2000: Start>Programs>Accessories>System Tools>Backup>Emergency Repair Disk ("ntbackup.exe")  
·NT4: Start>Run>Type "rdisk.exe"  

SetupBatcher GUI from top to bottom.

SetupBatcher shares the tab labeled "SetupBatcher & NTreport" with NTreport. Notice that NTreport uses its own command set and syntax checker, NTreport has nothing more than the GUI in common with SetupBatcher.



Top of window: system menu.
File
·New / Open / Save / Reopen script or script section  
·Start the SetupBatcher script wizard  
·Print script  
·Exit  
Edit
·Auto format code (for description, see speed buttons below)  
·Replace command delimiter - change delimiter in all command sections + "BatchSettings.CommandDelimiter" setting.  
·Cut / Copy / Paste / Find / Replace  
Data
[Data] section functions
·Replace delimiter - change delimiter in the [Data] section + "BatchSettings.Delimiter" setting.  
·Show column index - replace delimiter with "<-(* column_number *)"  
·Hide column index - replace "<-(* column_number *)" with delimiter  

·Clear column - clear a [Data] section column  
·Copy column(s) to clipboard - copy one or many [Data] columns to clipboard  
·Paste column from clipboard - paste a single column from the clipboard into the [Data] section  
·Swap columns - replace column X with column Y and Y with X  
·Merge columns - add data from different columns into a new column  
·Sort rows by column - sort the [Data] section rows by the text in a column  
·Replace text - replace text in a [Data] section column  

·Split column by words - put words delimited with spaces into different columns, example: source column = 1, destination column = 5. First row, first column = "Steven B Jones" -> column 5 ="Steven", column 6 = "B", column 7="Jones"  
·First word last - rotate words delimited with spaces, example: "Steven B Jones" -> "B Jones Steven"  
·Last word first - rotate words delimited with spaces, example: "Steven B Jones" -> "Jones Steven B"  

·Find duplicates - search a [Data] column for duplicate text strings, result displayed in log window  
·Show character statistics - calculate how many times each character appears in one column in the [Data] section, result displayed in log window  
Action
·Create list of machines in the [Machines] section (Windows only)  
·Run user name generator* ->[Data] section (Windows only)  
·Run text generator* ->[Data] section  
·Run password generator* ->[Data] section  
·Run [Batch] section  
·Run [Undo] section  
·Print [Data] section* (password sheets)  

*) Notice: script with proper settings required.
Remove markers
·Delete status / progress markers  
Options
·Set various AdmWin options  
Help
·Open this help file  
·Show tips  
·Tutorials  
·Go to AdmWin home page  
·Open support form  
·About  
 

Below system menu: speed buttons
CTRL+N
·New script  

·Start the SetupBatcher script wizard  
CTRL+O
·Open script  

·Reopen script  
CTRL+S
·Save script. A backup copy of last file with same filename is automatically created when saving a file. The backup has a "~" character inserted before the extension.  
CTRL+P
·Print script  
CTRL+E
·Auto format code - makes the code easier to read - automatically indents code inside loops, if statements and vbscript sections. The function also sets correct character case in commands.  
CTRL+R
·Run the [Batch] section of the script  
CTRL+U
·Run the [Undo] section of the script  
CTRL+M
·Remove all markers  

·Open this help file  

·Go to Settings / Machines / Batch / Undo / Data section  
 

Below speed buttons: script editor
·This is where scripts are created and modified, and this is where SetupBatcher writes progress markers.  

Below script editor: log
·This is where status and error messages are displayed.  
·Resize the log by clicking and dragging the upper border.  

Functions not accessible from GUI
Escape key
·Interrupt batch job. Please notice that there for some commands can be a quite long delay before the job actually stops.  
·It is possible to stop a script and continue later, SetupBatcher can check the status markers and continue at the point where the job was interrupted.  
F1
·Open the help topic for the command on the script line where the editor cursor is.  
Ctrl+Shift+I
·Indents selected text, use to make code more readable.  
Ctrl+Shift+U
·Outdents selected text.  
Ctrl+Z
·Editor undo (Up to 1000 levels)  
Ctrl+Shift+Z
·Editor redo  
Ctrl+Shift+0
·Set editor bookmark 0 (Bookmarks are displayed in the gutter)  
Ctrl+0   
·Go to editor bookmark 0  
Ctrl+Shift+1
·Set bookmark 1  
Ctrl+1
·Go to bookmark 1  
...
...
Ctrl+Shift+9
·Set bookmark 9  
Ctrl+9
·Go to bookmark 9  
 

Script file

A basic script file may look like this

[Settings_Begin]
BatchSettings.Debug=Yes
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
SET mypath=c:\temp
[Settings_End]

[Machines_Begin]
\\EDU12
[Machines_End]

[Batch_Begin]
Data.Loop
 DOS md %mypath%\%col1%\SubdirIn%Col1%
Data.Endloop   
[Batch_End]

[Data_Begin]
Dir1         
Dir2         
Dir3         
Dir4         
[Data_End]

The script creates four directories with a subdirectory in each under c:\temp; "c:\temp\Dir1\SubdirInDir1", "c:\temp\Dir2\SubdirInDir2", "c:\temp\Dir3\SubdirInDir3" and "c:\temp\Dir4\SubdirInDir4".

As you can see, there are four sections in the above script; [Settings], [Machines], [Batch] and [Data]. By the names of the sections you can probably guess what they are intended for; [Settings] contains various settings, [Machines] contains the names of the machines on which to execute the script, [Batch] contains commands to carry out, and [Data] contains data to be used in the commands.

Quick account management example


1.Open the file "ntacc.cnu" in the AdmWin directory.  
2.Delete the computer name listed under the heading [Machines_begin] and type the name of your server.  
3.Put the cursor between the labels [Data_Begin] and [Data_End]. Press <TAB>, type an account name, press <TAB> again and type a password. Put one name / password on each row. You can also paste text from the clipboard.  
5.Now save the modified script - click "Save", choose the extension "Script-files" and select a file name.  
6.Click the "Run" button (green triangle) or press CTRL+R.  
7.Logon with one of the new accounts to verify that everything works - logon-script, policy, profile, share etc.  
8.Distribute passwords and user names to your users either by printing password sheets in SetupBatcher, or by exporting data through the clipboard to some other application that has a mail merge function.  

Related topics

·Tutorials  
·Script examples