net user

  • Thread starter Thread starter yepiknowiam
  • Start date Start date
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.
 
yepiknowiam wrote:

> 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
 
"yepiknowiam" <yepiknowiam@discussions.microsoft.com> wrote in message
news:3F3A3D2B-46EC-4DA0-9637-50D2CD5BE39F@microsoft.com...
>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!
 
Back
Top