欢迎访问好IT,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站.

制作Windows10系统的dd包 – 含网卡和设置静态IP

教程 admin 6年前 (2018-09-10) 1029次浏览 0个评论 扫描二维码

环境:某商家超微主板的凌动服务器($20.00);Windows 10安装ISO文件;Dism++;7-zip;网卡驱动文件;DeployVHD

思路:

1.下载好Windows 10安装ISO文件,如 cn_windows_10_business_edition_version_1803_updated_jul_2018_x64_dvd_12613133.iso

2.按“蜂鸣器”博客里提到的方法,通过Dism++制作好包含“intel ethernet connection 1354 2.5 gbe backplane”网卡驱动的映像文件,将映像文件释放到vhd
制作Windows10系统的dd包 - 含网卡和设置静态IP

3.通过DeployVHD,应用无人值守配置文件Unattend.xml,启用远程桌面,且允许通过Windows防火墙,设置管理员administrator的密码,设置自动登录,设置“以太网”的网卡静态IP。如果是设置为中文语言的,需要留意/Windows/panther/Unattend.xml的文件内容,因为汉字的网卡名称可能会保存异常,否则可能在安装时会提示无人值守文件检查失败
制作Windows10系统的dd包 - 含网卡和设置静态IP

4.压缩包含有无人值守安装设置的vhd文件。在机子上安装测试,通过
制作Windows10系统的dd包 - 含网卡和设置静态IP

/Windows/panther/Unattend.xml 文件内容:

  1. <?xml version=”1.0″ encoding=”utf-8″?>
  2. <unattend xmlns=”urn:schemas-microsoft-com:unattend”>
  3.     <settings pass=”specialize”>
  4.         <component name=”Microsoft-Windows-Shell-Setup” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  5.         </component>
  6.         <component name=”Microsoft-Windows-TerminalServices-LocalSessionManager” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  7.             <fDenyTSConnections>false</fDenyTSConnections>
  8.         </component>
  9.         <component name=”Microsoft-Windows-TerminalServices-RDP-WinStationExtensions” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  10.             <UserAuthentication>0</UserAuthentication>
  11.         </component>
  12.         <component name=”Networking-MPSSVC-Svc” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  13.             <FirewallGroups>
  14.                 <FirewallGroup wcm:action=”add” wcm:keyValue=”RemoteDesktop”>
  15.                     <Group>@FirewallAPI.dll,-28752</Group>
  16.                     <Profile>all</Profile>
  17.                     <Active>true</Active>
  18.                 </FirewallGroup>
  19.             </FirewallGroups>
  20.         </component>
  21.     </settings>
  22.     <settings pass=”oobeSystem”>
  23.         <component name=”Microsoft-Windows-International-Core” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  24.             <InputLocale>007f:00000804</InputLocale>
  25.             <SystemLocale>zh-CN</SystemLocale>
  26.             <UILanguage>zh-CN</UILanguage>
  27.             <UILanguageFallback>zh-CN</UILanguageFallback>
  28.             <UserLocale>zh-CN</UserLocale>
  29.         </component>
  30.         <component name=”Microsoft-Windows-Shell-Setup” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”&gt;
  31.             <AutoLogon>
  32.                 <Password>
  33.                     <Value>xinNIANhao2019</Value>
  34.                     <PlainText>true</PlainText>
  35.                 </Password>
  36.                     <Enabled>true</Enabled>
  37.                     <LogonCount>5</LogonCount>
  38.                 <Username>Administrator</Username>
  39.             </AutoLogon>
  40.             <FirstLogonCommands>
  41.                 <SynchronousCommand wcm:action=”add”>
  42.                     <CommandLine>powershell.exe Get-NetAdapter -Name *  | ? status -eq up | Rename-NetAdapter -NewName “iEtherNet”</CommandLine>
  43.                     <Description>rename nic name</Description>
  44.                     <Order>1</Order>
  45.                 </SynchronousCommand>
  46.                 <SynchronousCommand wcm:action=”add”>
  47.                     <CommandLine>powershell.exe New-NetIPAddress -IPAddress “144.172.126.32” -InterfaceAlias “iEtherNet” -PrefixLength 24 -DefaultGateway 144.172.126.1</CommandLine>
  48.                     <Description>set static ip address</Description>
  49.                     <Order>2</Order>
  50.                 </SynchronousCommand>
  51.                 <SynchronousCommand wcm:action=”add”>
  52.                     <CommandLine>powershell.exe Set-DnsClientServerAddress -InterfaceAlias “iEtherNet” -ServerAddresses 8.8.8.8</CommandLine>
  53.                     <Description>set dns server</Description>
  54.                     <Order>3</Order>
  55.                 </SynchronousCommand>
  56.             </FirstLogonCommands>
  57.             <UserAccounts>
  58.                 <AdministratorPassword>
  59.                     <Value>xinNIANhao2019</Value>
  60.                     <PlainText>true</PlainText>
  61.                 </AdministratorPassword>
  62.             </UserAccounts>
  63.             <OOBE>
  64.                 <HideEULAPage>true</HideEULAPage>
  65.                 <SkipMachineOOBE>true</SkipMachineOOBE>
  66.             </OOBE>
  67.             <TimeZone>China Standard Time</TimeZone>
  68.         </component>
  69.     </settings>
  70.     <cpi:offlineImage cpi:source=”catalog:d:/temp/install_windows server 2012 r2 serverdatacenter.clg” xmlns:cpi=”urn:schemas-microsoft-com:cpi” />
  71. </unattend>

复制代码

参考:


好IT, 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明制作Windows10系统的dd包 – 含网卡和设置静态IP
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址