Jump to content

Recommended Posts

Posted

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 /add

net localgroup Administrators John /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT


Posted

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.

Posted

Try this

net user "the account name" "password" /fullname:"The aacount fullname" /comment:"Administration Account - DO NOT DELETE OR MODIFY" /passwordchg:no /add
net localgroup Administrators "the account name" /add
net localgroup users "the account name" /delete

Or you can automate it further with something like this

newuser.cmd

cmdow @ /HID
@echo off

net user %1 %2 /fullname:%3 /comment:%4 /passwordchg:no /add
net localgroup Administrators %1 /add
net localgroup users %1 /delete

net accounts /maxpwage:unlimited

So then you want have a command line like

newuser "my user name" "mypass" "My full name" "my discriptuon"

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...