Setting a Static IP autounattend.xml Guide For Windows Unattended Installs.

Discussion in 'Windows 10' started by KedarWolf, Aug 9, 2019.

  1. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    It worked, I did not put in the right place in xml file ;)
    However, it did not work for the DNS
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    I will retest (clean install on dedicated partition)
    However, I do not understand the setting <DhcpEnabled> true </ DhcpEnabled>
    With a static IP, no need for DHCP (disabled on my PC)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    I retested, and it does not work for DNS

    I did not put metric line, indicated automatic at one location and 10 at another
    Will I have to check on my PC in question, how is it
    And put <DhcpEnabled>flase</ DhcpEnabled>

    ipconfig /all

    Code:
    Carte Ethernet Ethernet :
    
       Suffixe DNS propre à la connexion. . . :
       Description. . . . . . . . . . . . . . : Qualcomm Atheros AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.30)
       Adresse physique . . . . . . . . . . . : 90-E6-BA-4D-D2-04
       DHCP activé. . . . . . . . . . . . . . : Non
       Configuration automatique activée. . . : Oui
       Adresse IPv6 de liaison locale. . . . .: fe80::6d13:b217:afba:fae8%6(préféré)
       Adresse IPv4. . . . . . . . . . . . . .: 192.168.0.1(préféré)
       Masque de sous-réseau. . . . . . . . . : 255.255.255.0
       Passerelle par défaut. . . . . . . . . : 192.168.0.254
       IAID DHCPv6 . . . . . . . . . . . : 93382330
       DUID de client DHCPv6. . . . . . . . : 00-01-00-01-24-E3-9E-2A-90-E6-BA-4D-D2-04
       NetBIOS sur TCPIP. . . . . . . . . . . : Désactivé
    Thanks for your help
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    Use exactly my settings, you are not using IPV4 why that has DHCP Enabled but the IPV6 settings which has DHCP disabled and is the correct way to do it in an autounattend.xml fiie.
     
  5. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    Thanks for your help

    I'm not using ipv6, but ipv4 only and so with this setting it does not work, which is logical, since by assigning an IP, I no longer use DHCP

    It still does not work for DNS :( :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    I don't know how to configure it for IPV4 but my settings work perfectly otherwise.
     
  7. whitestar_999

    whitestar_999 MDL Addicted

    Dec 9, 2011
    563
    242
    30
    Open network adapters setting & confirm name as "Ethernet" & not "Local Area Connection".

    P.S. Do the above while lan is actually connected & working.
     
  8. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    If you copy and paste the code I posted for you for a working static IP DON'T Change the IP4 DHCP to disabled. My code works for a static IP, but not for IPV4.
     
  9. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    If I copy your code, it does not work for ipv4, if I change the setting for DHCP Enabled, it's good
    But the DNS are not indicated (empty box)

    The name of the card is "Ethernet"

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. KedarWolf

    KedarWolf MDL Senior Member

    Mar 17, 2016
    356
    217
    10
    I'm testing an ISO right now with IP4 settings only.
     
  11. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    Thanks for your help
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    Ok thanks so much, I'll test
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    Tried with your code and the same thing, it does not work for DNS
    Maybe something that is "duplicate" in my file (I sent it to you by PM)

    Otherwise, it is not related to the OOBE, the DNS ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. whitestar_999

    whitestar_999 MDL Addicted

    Dec 9, 2011
    563
    242
    30
    Have you tried my earlier post?
     
  15. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    Yes, the name is Ethernet ;)

    But when installing Windows, the PC is not connected to the Internet, but I do not think that is why the DNS is not indicated
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. whitestar_999

    whitestar_999 MDL Addicted

    Dec 9, 2011
    563
    242
    30
    My network adapter name is also Ethernet but on connecting lan wire it shows as "Network 4" in network settings of control panel(win 8.1).My guess is you cannot set dns because you are using generic name "Ethernet" & not specific connection name which shows up when lan wire is connected & working.

    P.S. I understand this is for 1st time pc windows install so try "Network" instead of "Ethernet" as that should be the name given by windows for 1st lan connection after windows install(the name will be different for later lan connections to different devices than the 1st time).
     
  17. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,416
    513
    60
    The name is Ethernet and below is indicated Network, but if I want to rename the name of the card, it is Ethernet I can rename

    Capture.PNG

    In fact, I test on a partition dedicated to testing, but the IP, DNS that I test are not those of the network used for this PC
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...