Ask a Question related to IBM DB2, Design and Development.
-
P. Saint-Jacques #1
Re: Create additional local admin user account via script
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.P. Saint-Jacques Guest
-
Create DSN in admin tool using domain account
Hi. We're moving away from SQL authentication and using domain accounts for SQL Server authentication. How does one create a data source in the... -
How to allow a user account local login to server?
Hi, I need to allow some local access so they can administer print jobs and print reports from a custom printing app installed on Server 2003. ... -
Single XP Account for local and domain user
Hi all, I'm fairly new to the server scene (well, actually, I'm completely clueless), so bear with me here. On my home network I have an XP Pro... -
local user account size restriction
I am trying to restrict local user accounts to a certain size for example. Three local users on one pc, 3OGB hard drive. Restrict each user to... -
Local Admin Account Locked after Sysprep
I installed all my applications and then ran sysprep to reseal the drive so it could imaged. Everything went great until I entered the product key...



Reply With Quote

