0

I've been trying to automate the creation of a user account with admin rights using cmd bat .

net localgroup administrators [I]account name[/I]/add

got the following error:

There is no such global user or group:[I]account name[/I]

what's the problem?

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by VulcanDesign
0

Interesting. Maybe you left out the space between "name" and "/add"? Try this:

(
net user USERNAME PASSWORD /add
net localgroup administrators USERNAME /add
)
0

Then you probably don't have permission to do this, in which case the only other alternative would be getting permission from the current admin, or hacking into it, which I cannot help you with.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.