Jump to content

Manually Add IP Address during install


Recommended Posts

Hello,

Apologies if in wrong section, wasn't sure if best placed in here or the Networks one, though it is unattended related.

Anyway,

My build works fine and apps install no problems.

I have my winnt.sif set to ask me for the ComputerName, this i need and works as expected, install stops at this point, i type it in, it carries on as wanted.

I would like this to also happen at the Network Components section as well, so i can manually apply a static IP Address. I know about adding the

[Networking]

InstallDefaultComponents=No

and adding the params section, which is fine for 1 PC. I have 12 to do and so need to manually do this prefereably during the install, and not at the end.

I have tested with,

NO - [Networking] section

YES - [Networking] - set to NO and YES

NOT TRIED - [Networking] - NO . params blank

So, would the NOT TRIED, option actually do it or am i going to have to wait and manually do at end.

Please don't mention RIS or GHOST etc as these aren't a viable option for many many reasons.

Any help, suggestions appreciated.

Link to comment
Share on other sites


  • 2 weeks later...

@tguy,

thanks for your response. Unfortunately I couldn't find the bit that made it clear to do what I want.

I understand how to do

[Networking]

InstallDefaultComponents=No

OR

[Networking]

InstallDefaultComponents=Yes

Though neither of these work. Have also done BOTH of the above with

[NetAdapters]

Adapter1=params.Adapter1

[NetClients]

MS_MSClient=params.MS_MSClient

[NetServices]

MS_SERVER=params.MS_SERVER

[NetProtocols]

MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]

DNS=No

UseDomainNameDevolution=No

EnableLMHosts=Yes

AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]

SpecificTo=Adapter1

DHCP=Yes ----------> Yes or No

WINS=No

NetBIOSOptions=0

and I don't get asked.

There must be a way of doing this, just having trouble working it out, and banging hesad on wall is starting to cause large bruises. :realmad::realmad:

With DHCP=No, i was asked to enter username and password to add to domain, but having no IP details, it failed, which was expected.

Does anybody, have any ides on how i can get it to allow me to enter a static IP Address and DNS please, The IP Address is to c

Thank you.

Link to comment
Share on other sites

oioldman

hey, it is possible to add an address using the "netsh" command from a dos prompt. Maybe you could add the address to your runonce batch file and it will apply the address after you first log on.....

for example, the 3 lines below add Ip, subnet mask and dns server to a connection called "Lan"

netsh interface ip add address "Lan" 192.168.1.2 255.255.255.0
netsh interface ip add address "Lan" gateway=192.186.1.254 gwmetric=3
netsh interface ip add dns "Lan" 192.168.1.1

The name "lan" = the name of the network connection you want to apply the address to, i think the default is "Local area Connection"

hope this helps.

mike.

Link to comment
Share on other sites

@mikemooney:

tried your advise, seems to work... although i wanna set a static ip on my LAN connections.

here's the commands i did

netsh interface ip set address name="Local Area Connection" static 192.168.0.1 255.255.255.0
netsh interface ip set address name="Local Area Connection 2" static 192.168.0.2 255.255.255.0

Link to comment
Share on other sites

This methode works like a charm.

This was exactly what I was looking for.

You can also install TCP/IP version 6 this way.

Add this to your batch.

netsh interface ipv6 install

Now there is still one thing that I have to know.

Is there a way to install the "NWLink IPX/SPX/NetBIOS-compatibelprotecol" in a simular way. (And I don't want to use winnt.sif)?

I used the help function of netsh, and I could'nt find it.

Link to comment
Share on other sites

Try Something like this in your winnt.sif

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=No
   DisableDynamicUpdate=Yes
   DNSServerSearchOrder=192.168.1.1
   EnableAdapterDomainNameRegistration=No
   DefaultGateway=192.168.1.1
   IPAddress=192.168.1.3
   SubnetMask=255.255.255.0
   WINS=No
   NetBIOSOptions=2

This should do for most routers still using the default 192.168.1.x range in the factory presets. I would probably be tempted to change the IP Address to something like 192.168.1.12, just to prevent future network conflicts with anything still using DHCP.

Link to comment
Share on other sites

oioldman

the netsh command works like a charm in the runonce command, i've just deployed alot of servers using this method. the post by Yzöwl looks spot on and just proves how good an uattended file can be........

what i want to know now is, just how much can be done in an unattended script? can you completely customize every aspect of a server or client install? if so, please post ur scripts.....

thanks

mike

Link to comment
Share on other sites

oioldman@

If you put:

[Unattended]

UnattendMode = GuiAttended

This should give you the opportunity to fill out the network screen during install.

be aware, if you have any custom dirs such as 'Profilesdir=whatever', it will not be implemented and winxp will just create the default dirs. Anyway that's what happened when I used the GuiAttended value. Maybe someone more experienced has a better answer.

Link to comment
Share on other sites

Guys,

Thanks for all your replies.

I'll have a look at the one offered by noclist, as doing the one by Yzöwl, is fine, but I have 10 PC's to do this on, and unless I can find a way to choose which .sif file to use.

Hopefully i'll be able to do tonight, and will update.

Link to comment
Share on other sites

Could do this way, and change the IP address for each PC on it - bit of a pain though.

Well had a go with doing =>

all settings no ip - no request

all settings with ip - all works

just need to start configuring, because i'm sure some settings will trigger it to appear, just gotta work out which ones.

Am determined enough that hopefully 'll get a result and will update

Link to comment
Share on other sites

Folks,

Thanks for all you help.

I have managed to get it to do as wanted =>

winnt.sif looks like this

[Identification]
   JoinDomain=domainame => change to suit own
   CreateComputerAccountInDomain=Yes
   MachineObjectOU="OU=server1, DC=home, DC=co.uk" => change to suit own
   DomainAdmin=domainname\administrator => change to suit own
   DomainAdminPassword=.................. => change to suit own

[Networking]
   InstallDefaultComponents=No

[NetAdapters]
   Adapter1=params.Adapter1

[NetClients]
   MS_MSClient=params.MS_MSClient

[NetServices]
   MS_SERVER=params.MS_SERVER

[NetProtocols]
   MS_TCPIP=params.MS_TCPIP

[params.MS_TCPIP]
   DNS=No
   UseDomainNameDevolution=No
   EnableLMHosts=Yes
   AdapterSections=params.MS_TCPIP.Adapter1

[params.MS_TCPIP.Adapter1]
   SpecificTo=Adapter1
   DHCP=No
   WINS=Yes
   NetBIOSOptions=0
   IPAddress=
   SubnetMask=
   DNSServerSearchOrder=
   WinsServerList=

[Proxy]
   Proxy_Enable=0
   Use_Same_Proxy=0

[params.Adapter1]
   INFID=*

and it forces the box to appear as the domain info is wrong. So, you click Back once, enter the IP details as needed, and then add into the domain. Works like a charm.

Hope it helps anybody else.

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