Jump to content

Select Domain to Join via Menu


Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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 ABORT

IF ERRORLEVEL 2 GOTO DOMAINB

IF ERRORLEVEL 1 GOTO DOMAINA

goto END

:DOMAINB

set DOMAIN=DOMAINB

goto END

:DOMAINA

set DOMAIN=DOMAINA

goto END

:END

ECHO Adding %ComputerName% to %DOMAIN%.local

NETDOM.EXE JOIN %ComputerName% /Domain:%DOMAIN% /OU:OU=Workstations,DC=DOMAINA,DC=local /UserD:domain\Administrator /PasswordD:password /REBoot 30

:ABORT

exit

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