Create Admin Account

M

Marcelo López

I need to create an administrator account through command line
I created the user using net user /ADD
But the account generated is a limited one.

So i want to use the net group username usergroup / ADD

(i guess this is the way) to assignthe user to the Administrators Group.

But i get a message that says " you can only do it on a win domain
controller". I tried using the /DOMAIN but ith didn't work

How should i assign the admin permissions to my new user ?

Regards



Marcelo López
Infocorp.
Latin America

PD: i'm using Win2000 and WinXp (my app has to run in both os)
 
M

Mark V

In said:
I need to create an administrator account through command line
I created the user using net user /ADD
But the account generated is a limited one.

So i want to use the net group username usergroup / ADD

(i guess this is the way) to assignthe user to the Administrators
Group.

But i get a message that says " you can only do it on a win domain
controller". I tried using the /DOMAIN but ith didn't work

How should i assign the admin permissions to my new user ?

Group membership is either a local group ("localgroup") or a domain
group ("group")

NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Hide User Account 3
User Accounts 1
how to confirm a command ?? 2
Problem using CACLS 3
wierd batch file behavior 3
Deploy in .NET 2
Depply app with .NET 1
Folder Permissions 1

Top