Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner

How to Disable DHCP When Deploying Vista/Server 2008 Using Sysprep and Unattend.xml

microsoft.public.windows.vista.installation setup






Speedup My PC
Reply
  #1 (permalink)  
Old 11-10-2008
dln
 

Posts: n/a
How to Disable DHCP When Deploying Vista/Server 2008 Using Sysprep and Unattend.xml
Hello all,

I've run into a problem when trying to deploy either a Vista or Server 2008
syspreped image in conjunction with an Unattend.xml file. My problem is
this - the install, from start to finish, is supposed to be an unattended,
build-to-plan image. Part of the install involves assigning a static IP
address. Although I've been able to configure a static IP for the image, I
can't seem to disable DHCP for the image.

I have set the
x86_Microsoft-Windows-TCPIP_neutral/Interfaces/Interface[Identifier="1"]/Ipv4Settings/DhcpEnabled
value to "false" for configuration pass 4, but the setting is ignored for
some reason. I'm a complete newb when it comes to the Vista/Server 2008
deployment model so if someone could point me in the right direction, it
would be appreciated.

My unattend.xml file is listed below (Server 2008 listed, but the Vista one
is more or less similar). I'm imaging the system using the command "sysprep
/generalize /oobe /unattend:c:\sysprep\unattend.xml":

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-ServerManager-SvrMgrNc"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
</settings>
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<Restart>Restart</Restart>
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
</component>
<component name="Microsoft-Windows-International-Core-WinPE"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-UnattendedJoin"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Identification>
<JoinWorkgroup>Workgroup</JoinWorkgroup>
</Identification>
</component>
<component name="Microsoft-Windows-Shell-Setup"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName>CHANGEMe</ComputerName>
<ProductKey>AAAAA-AAAAA-AAAAA-AAAAA-AAAAA</ProductKey>
<RegisteredOrganization>Org Name</RegisteredOrganization>
<RegisteredOwner>Product Services</RegisteredOwner>
</component>
<component name="Microsoft-Windows-TCPIP"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface wcm:action="add">
<Ipv4Settings>
<DhcpEnabled>false</DhcpEnabled>
<RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
</Ipv4Settings>
<Routes>
<Route wcm:action="add">
<Identifier>1</Identifier>
<NextHopAddress>10.10.50.193</NextHopAddress>
<Prefix>10.10.50.192/26</Prefix>
</Route>
</Routes>
<Identifier>1</Identifier>
<UnicastIpAddresses>
<IpAddress wcm:action="add"
wcm:keyValue="1">10.10.50.195/26</IpAddress>
</UnicastIpAddresses>
</Interface>
</Interfaces>
</component>
<component name="Microsoft-Windows-DNS-Client"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<Interface wcm:action="add">
<DNSServerSearchOrder>
<IpAddress wcm:action="add"
wcm:keyValue="1">10.10.50.193</IpAddress>
</DNSServerSearchOrder>
<Identifier>1</Identifier>
</Interface>
</Interfaces>
</component>
<component name="Microsoft-Windows-Security-Licensing-SLC-UX"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>false</SkipAutoActivation>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserAccounts>
<AdministratorPassword>
<Value>some encrypted value</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Work</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
</component>
</settings>
<cpifflineImage
cpi:source="wim:c:/windows/system32/sysprep/panther/install.wim#Windows
Longhorn SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-10-2008
dln
 

Posts: n/a
Re: How to Disable DHCP When Deploying Vista/Server 2008 Using Sysprep and Unattend.xml
I figured it out. I needed to specify "Local Area Connection" as the
Interface Identifier instead of an index number.

Thanks anyway.

"dln" <dnadon_nospm@hotmail.com> wrote in message
news:459EEECB-81F7-4231-806B-BAB5220ADAB1@microsoft.com...
> Hello all,
>
> I've run into a problem when trying to deploy either a Vista or Server
> 2008 syspreped image in conjunction with an Unattend.xml file. My problem
> is this - the install, from start to finish, is supposed to be an
> unattended, build-to-plan image. Part of the install involves assigning a
> static IP address. Although I've been able to configure a static IP for
> the image, I can't seem to disable DHCP for the image.
>
> I have set the
> x86_Microsoft-Windows-TCPIP_neutral/Interfaces/Interface[Identifier="1"]/Ipv4Settings/DhcpEnabled
> value to "false" for configuration pass 4, but the setting is ignored for
> some reason. I'm a complete newb when it comes to the Vista/Server 2008
> deployment model so if someone could point me in the right direction, it
> would be appreciated.
>
> My unattend.xml file is listed below (Server 2008 listed, but the Vista
> one is more or less similar). I'm imaging the system using the command
> "sysprep /generalize /oobe /unattend:c:\sysprep\unattend.xml":
>
> <?xml version="1.0" encoding="utf-8"?>
> <unattend xmlns="urn:schemas-microsoft-com:unattend">
> <settings pass="generalize">
> <component name="Microsoft-Windows-ServerManager-SvrMgrNc"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
> </component>
> </settings>
> <settings pass="windowsPE">
> <component name="Microsoft-Windows-Setup"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <EnableFirewall>true</EnableFirewall>
> <EnableNetwork>true</EnableNetwork>
> <Restart>Restart</Restart>
> <DiskConfiguration>
> <Disk wcm:action="add">
> <DiskID>0</DiskID>
> <WillWipeDisk>true</WillWipeDisk>
> </Disk>
> <WillShowUI>OnError</WillShowUI>
> </DiskConfiguration>
> </component>
> <component name="Microsoft-Windows-International-Core-WinPE"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SetupUILanguage>
> <UILanguage>en-US</UILanguage>
> </SetupUILanguage>
> <InputLocale>en-US</InputLocale>
> <SystemLocale>en-US</SystemLocale>
> <UILanguage>en-US</UILanguage>
> <UILanguageFallback>en-US</UILanguageFallback>
> <UserLocale>en-US</UserLocale>
> </component>
> </settings>
> <settings pass="specialize">
> <component name="Microsoft-Windows-UnattendedJoin"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <Identification>
> <JoinWorkgroup>Workgroup</JoinWorkgroup>
> </Identification>
> </component>
> <component name="Microsoft-Windows-Shell-Setup"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <ComputerName>CHANGEMe</ComputerName>
> <ProductKey>AAAAA-AAAAA-AAAAA-AAAAA-AAAAA</ProductKey>
> <RegisteredOrganization>Org Name</RegisteredOrganization>
> <RegisteredOwner>Product Services</RegisteredOwner>
> </component>
> <component name="Microsoft-Windows-TCPIP"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <Interfaces>
> <Interface wcm:action="add">
> <Ipv4Settings>
> <DhcpEnabled>false</DhcpEnabled>
>
> <RouterDiscoveryEnabled>false</RouterDiscoveryEnabled>
> </Ipv4Settings>
> <Routes>
> <Route wcm:action="add">
> <Identifier>1</Identifier>
> <NextHopAddress>10.10.50.193</NextHopAddress>
> <Prefix>10.10.50.192/26</Prefix>
> </Route>
> </Routes>
> <Identifier>1</Identifier>
> <UnicastIpAddresses>
> <IpAddress wcm:action="add"
> wcm:keyValue="1">10.10.50.195/26</IpAddress>
> </UnicastIpAddresses>
> </Interface>
> </Interfaces>
> </component>
> <component name="Microsoft-Windows-DNS-Client"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <Interfaces>
> <Interface wcm:action="add">
> <DNSServerSearchOrder>
> <IpAddress wcm:action="add"
> wcm:keyValue="1">10.10.50.193</IpAddress>
> </DNSServerSearchOrder>
> <Identifier>1</Identifier>
> </Interface>
> </Interfaces>
> </component>
> <component name="Microsoft-Windows-Security-Licensing-SLC-UX"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SkipAutoActivation>false</SkipAutoActivation>
> </component>
> </settings>
> <settings pass="oobeSystem">
> <component name="Microsoft-Windows-International-Core"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <InputLocale>en-US</InputLocale>
> <SystemLocale>en-US</SystemLocale>
> <UILanguage>en-US</UILanguage>
> <UILanguageFallback>en-US</UILanguageFallback>
> <UserLocale>en-US</UserLocale>
> </component>
> <component name="Microsoft-Windows-Shell-Setup"
> processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
> language="neutral" versionScope="nonSxS"
> xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <UserAccounts>
> <AdministratorPassword>
> <Value>some encrypted value</Value>
> <PlainText>false</PlainText>
> </AdministratorPassword>
> </UserAccounts>
> <OOBE>
> <HideEULAPage>true</HideEULAPage>
> <NetworkLocation>Work</NetworkLocation>
> <ProtectYourPC>1</ProtectYourPC>
> <SkipUserOOBE>true</SkipUserOOBE>
> </OOBE>
> </component>
> </settings>
> <cpifflineImage
> cpi:source="wim:c:/windows/system32/sysprep/panther/install.wim#Windows
> Longhorn SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
> </unattend>
>
>


Reply With Quote
  #3 (permalink)  
Old 11-21-2008
Andrew2506
 

Posts: n/a
Re: How to Disable DHCP When Deploying Vista/Server 2008 Using Sys
It doesn't work anyway

"dln" wrote:

> I figured it out. I needed to specify "Local Area Connection" as the
> Interface Identifier instead of an index number.
>
> Thanks anyway.
>
>

Reply With Quote
  #4 (permalink)  
Old 11-22-2008
dln
 

Posts: n/a
Re: How to Disable DHCP When Deploying Vista/Server 2008 Using Sys
Yeah, after much frustration, I came to that conclusion. I ended up running
a synchronous script in the specialize phase that executes netsh to set the
network parameters. The script is part of the image so it's always there.
Works like a charm.

"Andrew2506" <Andrew2506@discussions.microsoft.com> wrote in message
news:CFF7DA5F-D499-419A-A8BA-3EE2026A4CEA@microsoft.com...
> It doesn't work anyway
>
> "dln" wrote:
>
>> I figured it out. I needed to specify "Local Area Connection" as the
>> Interface Identifier instead of an index number.
>>
>> Thanks anyway.
>>
>>


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unattend.xml not running during sysprep Tyler Durden microsoft.public.windows.vista.installation setup 2 07-25-2008 09:26
Article ID: 935988 When you try to remotely administer a DHCP server from a Windows Vista-based computer, you cannot find the DHCP scopes KBArticles English 0 10-22-2007 20:00
Article ID: 940722 A client computer that held a DHCP reservation is not resolvable by using DNS after you delete the reservation on a DHCP server that is running Windows Server 2003 KBArticles English 0 10-22-2007 20:00
Vista Sysprep Unattend Bugs? =?Utf-8?B?bWF6bWFu?= microsoft.public.windows.vista.installation setup 1 03-21-2007 11:42
Sysprep and Unattend.xml Security issue ...Very serious !!! =?Utf-8?B?Qm9iIFJveWNl?= microsoft.public.windows.vista.installation setup 0 12-13-2006 00:54




All times are GMT +1. The time now is 15:38.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com , Win7Heads.com and Win8Heads.com.


Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 RC 2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120