Jump to content

Create Local admin account while logged into domain?


Recommended Posts

Posted

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


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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