shortie Posted May 17, 2004 Posted May 17, 2004 Hi,I made a sysprep image which will be used around the world.The sysprep.inf includes also domain info. Since we only want to maintain one image for all countries, is there a way to run a menu at GUIRunOnce for example, asking what domain to join?Regards shortie
XtremeMaC Posted May 17, 2004 Posted May 17, 2004 u can either do this by using default values in sysprep or I believe u can just write a simple batch file to be executed at user start-up and change the domain. or ask which domain to join...
LittleMe Posted May 18, 2004 Posted May 18, 2004 I used a batch to prompt on which domain and then used the netdom util to join that domain based on the reply. choice /C:FS /n Workstation Type [A]Domain, Domain: IF ERRORLEVEL 255 GOTO ABORTIF ERRORLEVEL 2 GOTO DOMAINBIF ERRORLEVEL 1 GOTO DOMAINAgoto END:DOMAINBset DOMAIN=DOMAINBgoto END:DOMAINAset DOMAIN=DOMAINAgoto END:ENDECHO Adding %ComputerName% to %DOMAIN%.localNETDOM.EXE JOIN %ComputerName% /Domain:%DOMAIN% /OU:OU=Workstations,DC=DOMAINA,DC=local /UserD:domain\Administrator /PasswordD:password /REBoot 30:ABORTexit
shortie Posted May 18, 2004 Author Posted May 18, 2004 Hi,thanks a lot, I will check it asap and let you know.Do you use the script at GUIRunOnce?Regards shortie
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