You may try this, we've used it often in different environments:

@echo creating user DB2ADMIN
net user DB2ADMIN YOURPW /add
net localgroup Administrators DB2ADMIN /add

HTH, Pierre.

nek wrote:
> Hi Group,
>
> With limited knowledge of W2k where DB2 UDB V8 resides, I appreciate
> if you could shed some light on this.
>
> Problem (1)
> I tried to write a script to automate a few tasks. Some of them are as
> follows:
>
> a. Create additional local admin user account, say, user1 (assume no
> Windows resource kit available)
> b. Create new database
> c. Connect to the new db and create tables and indexes under it
> d. Grant CONNECT on db to user1
> e. etc..
>
> I got it right from step(b) onwards. Just do not know how to create
> local admin user in step(a).
>
> Problem(2)
> I would like to log all results of the above execution to a file. Is
> there a way to parse this log file for any error messages in case any
> of the steps fails?
>
> Many thanks in advance.
> Nek.