Jump to content

Create Local admin account while logged into domain?


Gibbon

Recommended Posts

Hey Guys,

Im onto my next project, and have a question for you experts....

Im using this script to create a local admin account during our winbom.ini driven build.

:: Add user "engineer" to admins, disable password expiry and self change :

net user /add engineer01 engineer01 /passwordchg:no /expires:never

net localgroup "Administrators" /add engineer

netuser engineer /pwnexp:y

It works, but seems to create an account called "/engineer" not just "engineer"

Is this something to do with the fact I am logged into the domain when running the commands?

If so, how do I fix this? All I want is a local admin account to be created on the machine.

Cheers!

Gib

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...