Jump to content

selecting domain


Recommended Posts

Im wanting to create an unattended slipstreamed windows xp cd that will let you select which domain you want to use before running setup e.g.

@rem SetupMgrTag
@echo off

rem
rem This is a SAMPLE batch script generated by the Setup Manager Wizard.
rem If this script is moved from the location where it was generated, it may have to be modified.
rem

@ECHO off
cls
:start
ECHO.
ECHO 1. domain1
ECHO 2. domain2
ECHO 3. domain3
ECHO 4. domain4
ECHO 5. domain5
ECHO 6. domain6
ECHO 7. domain7
set choice=
set /p choice=Type the Number to select domain
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' set AnswerFile=.\domain1.txt
if '%choice%'=='2' set AnswerFile=.\domain2.txt
if '%choice%'=='3' set AnswerFile=.\domain3.txt
if '%choice%'=='4' set AnswerFile=.\domain4.txt
if '%choice%'=='5' set AnswerFile=.\domain5.txt
if '%choice%'=='6' set AnswerFile=.\domain6.txt
if '%choice%'=='7' set AnswerFile=.\domain7.txt

ECHO "%choice%" is not valid please try again

set SetupFiles=F:\i386

F:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

example for domain1.txt :-

;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
UnattendMode=ProvideDefault
OemPreinstall=No
TargetPath=\WINDOWS

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=85

[UserData]
FullName="User"
OrgName="organisation"
ComputerName=*

[Display]
BitsPerPel=16
Xresolution=1024
YResolution=768

[TapiLocation]
CountryCode=44
Dialing=Tone
AreaCode=0114
LongDistanceAccess="9"

[RegionalSettings]
LanguageGroup=1
SystemLocale=00000809
UserLocale=00000809
InputLocale=0809:00000809

[Branding]
BrandIEUsingUnattended=Yes

[URL]
Home_Page=http://intranet

[Proxy]
Proxy_Enable=0
Use_Same_Proxy=1

[GuiRunOnce]
Command0="rundll32 printui.dll,PrintUIEntry /in /n \\domain1\hp4300"

[Identification]
JoinDomain=domain1
DomainAdmin=Administrator
DomainAdminPassword=password

[Networking]

would this work?

also is there a way of once the installation is finished it logs a user into windows that has a domain account, e.g. fred.bloggs logs in?

if so is there a way i could create a script file that would ask me which user i want to login, but this wouldnt be a choice of 1-10 more like free choice e.g. it could be any name (as long as it has an account on the domain the computer is attaching to)

Thanks in advance

Superblades

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