KJ said:
I need to create a local user with a password and add them to the local power
users group, does anyone have a script to do that? Thanks again for your
help...
From the help text in generated by typing net user /?:
The syntax of this command is:
NET USER
[username [password | *] [options]] [/DOMAIN]
username {password | *} /ADD [options] [/DOMAIN]
username [/DELETE] [/DOMAIN]
From the help text generated by typing net localgroup /?:
The syntax of this command is:
NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
Hence:
net user JSmith SomePassword /add
net localgroup "Power Users" JSmith /add