BloodStalker Posted September 6, 2004 Posted September 6, 2004 Hi there, I am trying to create my user account during my unattended setup, now I used the method below but when i ran the unattended setup, and it came to this stage a command line screen popped up saying somethign to the effect of your password is more than 14 characters and it asked me if I wanted to continue, of course I said yes. Now what I would like to know is, is there a way I can add something to the useraccounts.cmd file to automatically answer yes to this question. If so what is it and can you show me how with the information below(that is not my info, it is what was on the unattended cd site)net user John asdf1234 /addnet localgroup Administrators John /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXIT
BloodStalker Posted September 6, 2004 Author Posted September 6, 2004 Doe anyone have a way I can edit the useraccounts.cmd file so that i can have the useraccount created without prompting me to say yes to the question about my password being longer than 14 characters, or if anyone has another way i can create my account without using the command prompt i will gladly listen.
`Felix` Posted September 7, 2004 Posted September 7, 2004 Try thisnet user "the account name" "password" /fullname:"The aacount fullname" /comment:"Administration Account - DO NOT DELETE OR MODIFY" /passwordchg:no /addnet localgroup Administrators "the account name" /addnet localgroup users "the account name" /deleteOr you can automate it further with something like thisnewuser.cmdcmdow @ /HID@echo offnet user %1 %2 /fullname:%3 /comment:%4 /passwordchg:no /addnet localgroup Administrators %1 /addnet localgroup users %1 /deletenet accounts /maxpwage:unlimitedSo then you want have a command line likenewuser "my user name" "mypass" "My full name" "my discriptuon"
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