net user

Y

yepiknowiam

I am trying to add a new user on the local workstation (not domain user) with
net user. I'm able to create the user fine with the following command:

net user localuser {password} /add /expires:never /passwordchg:no

It places the user into the "users" account. Is there a way I can speficy
it to go to the powerusers group instead? If I need a separate batch file to
do, that's fine.

I was wondering if the net localgroup would work or if that is only for
domain groups and users.

Thanks.
 
J

John John (MVP)

yepiknowiam said:
I am trying to add a new user on the local workstation (not domain user) with
net user. I'm able to create the user fine with the following command:

net user localuser {password} /add /expires:never /passwordchg:no

It places the user into the "users" account. Is there a way I can speficy
it to go to the powerusers group instead?


Follow it with:

net localgroup "power users" localuser /add
net localgroup users localuser /delete

John
 
P

Pegasus \(MVP\)

yepiknowiam said:
I am trying to add a new user on the local workstation (not domain user)
with
net user. I'm able to create the user fine with the following command:

net user localuser {password} /add /expires:never /passwordchg:no

It places the user into the "users" account. Is there a way I can speficy
it to go to the powerusers group instead? If I need a separate batch file
to
do, that's fine.

I was wondering if the net localgroup would work or if that is only for
domain groups and users.

Thanks.

In such cases the trick is to use the help built into net.exe, eg. like so:
net help
net localgroup /?
net help localgroup
There is a lot of help built into net.exe!
 

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

Top