mikebrod Posted August 19, 2004 Share Posted August 19, 2004 Is there a way to add Domain users during an unattended install? Does anyone have a script that can add users by prompting for a username? Can you add a PC to a domain during the unattended install? Link to comment Share on other sites More sharing options...
jleonard78 Posted August 20, 2004 Share Posted August 20, 2004 You can join the computer to a domain easily, as well as add users. My experience thus far, however, has seen the $OEM$ folder not processed. I haven't narrowed yet if it's just the upgrade installs or if the bare installs though, so take it with a grain of salt.Anyhow...here is a copy/paste of the section to add in in WinNT.sif for joining a domain. It has worked flawlessly for me at work thus far.[identification] JoinDomain=<DOMAIN NAME> DomainAdmin=Administrator DomainAdminPassword=<Admin Password>As for adding users...the original MSFN Unattended page has some good information on that, and it works fairly well. (everything I've used from those guides works perfect)http://unattended.msfn.org/xp/autologon.htmThere's just a few slight differences to make to your cmd file. It all takes some familiarity with your command line stuff for WinNT kernel.First command in the file is the one to add the user. If you want it to process the account from a domain instead of locally, you need the /domain switch. So instead of:net user John asdf1234 /addYou would usenet user John asdf1234 /add /domainFor the password prompt, instead of specifying one in the text file, you can use * in place of the actual password.Similarly, for the second linenet localgroup Administrators John /addA /domain at the end will process the command from the domain.If you use roaming profiles, however, you will most likely not want to use the "localgroup" command What good would that do? Instead, removing local from the command (net group xxx), should work. They use the same switches and options. All of this depends on just how your network is set up.Also, you most likely won't want maxpwage to be set to unlimited. I assume you have passwords expire every x days? So change: accounts /maxpwage:unlimitedto something likenet accounts /maxpwage:45for a 45 day expiration.I HIGHLY recommend playing with these commands first on a machine already installed, to make sure you get the right set of commands that set things up just right for your network setting. 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