I like to automate installation and configuration processes with tools e.g. Ansible, batch files, ... . Therefore I tried rolling out a template with a text file that contained the necessary steps.
I defined in a program document : nserver -c "< c:\temp\mailtemplate.txt" with the following mailtemplate.txt file:
set conf Server_Restricted=1
tell router quit
Load convert -u mail\user1.nsf * mail12.ntf
Load convert -u mail\user2.nsf * mail12.ntf
Load dbmt -ct 0 -ut 1 mail\user1.nsf
Load dbmt -ct 0 -ut 1 mail\user2.nsf
set conf Server_Restricted=0
... but unfortunately the server didn't executed the commands in a sequential order and didn't wait until a command was executed.
So I would like to have another parameter for executing the command text file sequentially. e.g. nserver -c -s "< c:\temp\mailtemplate.txt"
PS: Maybe the server can better controll the execution of commands than via program documents --> Execute Program Documents sequentally