Jump to content

net user


Recommended Posts

Guest yepiknowiam
Posted

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.

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest John John (MVP)
Posted

Re: net user

 

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

Guest Pegasus \(MVP\)
Posted

Re: net user

 

 

"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!


×
×
  • Create New...