Gibbon Posted August 22, 2007 Share Posted August 22, 2007 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:nevernet localgroup "Administrators" /add engineernetuser engineer /pwnexp:yIt 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 More sharing options...
nmX.Memnoch Posted August 23, 2007 Share Posted August 23, 2007 Move your /add switch after the username and password like so:net user engineer01 engineer01 /add /passwordchg:no /expires:never Link to comment Share on other sites More sharing options...
Gibbon Posted August 29, 2007 Author Share Posted August 29, 2007 Thanks mate! it worked! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now