Jump to content

add user post install


Recommended Posts

Hey everyone

I have created a unattended xp cd which works great except for one thing.

I used nlite to remove some componets I didn't use/want including the wizard

that appears just after you install, the on that connects you to the internet and trys to get you the register windows etc and on the last screen it asks your name and then creates a account with that name and logs in to it. Now that it's gone in just installs and logs in as administrator

Is there a way to ask user for input i.e. name and create that account and log in?. I was thinking maybe in a .cmd file.

Any other solutions would be great also.

Cheers.

Link to comment
Share on other sites


Batch: Use in cmd file

@Echo Off
Set /p NewUser="Please enter the name of the user: "
Net User %NewUser% password /Add

vb script: Use in vbs file

Set objShell = CreateObject("WScript.Shell")
NewUser = InputBox("Please enter the name of the user:")
objShell.Run "Net User " & NewUser & " password /Add"

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