找回密码
 立即注册
CeraNetworksBGVM服务器主机交流IP归属甄别会员请立即修改密码
查看: 350|回复: 0

制作Windows 10系统的dd包

[复制链接]

18

主题

335

回帖

1705

积分

金牌会员

积分
1705
发表于 2018-8-8 17:19:37 | 显示全部楼层 |阅读模式
本帖最后由 LiuJia 于 2018-8-10 14:23 编辑

环境:某商家超微主板的凌动服务器($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




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




4.压缩包含有无人值守安装设置的vhd文件。在机子上安装测试,通过




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

[ol]
  •    
  •         
  •         
  •         
  •             false
  •         
  •         
  •             [U]0[/U]
  •         
  •         
  •             
  •                
  •                     @FirewallAPI.dll,-28752
  •                     all
  •                     true
  •                
  •             
  •         
  •    
  •    
  •         
  •             [I]007f:00000804[/I]
  •             zh-CN
  •             [U]zh-CN[/U]
  •             [U]zh-CN[/U]
  •             [U]zh-CN[/U]
  •         
  •         
  •             
  •                
  •                     xinNIANhao2019
  •                     true
  •                
  •                     true
  •                     5
  •                 [U]Administrator[/U]
  •             
  •             
  •                
  •                     powershell.exe Get-NetAdapter -Name *  | ? status -eq up | Rename-NetAdapter -NewName "iEtherNet"
  •                     rename nic name
  •                     1
  •                
  •                
  •                     powershell.exe New-NetIPAddress -IPAddress "144.172.126.32" -InterfaceAlias "iEtherNet" -PrefixLength 24 -DefaultGateway 144.172.126.1
  •                     set static ip address
  •                     2
  •                
  •                
  •                     powershell.exe Set-DnsClientServerAddress -InterfaceAlias "iEtherNet" -ServerAddresses 8.8.8.8
  •                     set dns server
  •                     3
  •                                                 
  •             
  •             [U]
  •                
  •                     xinNIANhao2019
  •                     true
  •                
  •             [/U]
  •             
  •                 true
  •                 true
  •             
  •             China Standard Time
  •         
  •    
  •    
  • [/ol]复制代码


    参考:
  • https://www.fmqcloud.com/archives/makedd.html
  • https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation
  • https://github.com/wellsluo/DeployVHD/blob/master/README-CN.md
  • https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-shell-setup-firstlogoncommands
  • https://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netipaddress?view=win10-ps
  • https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-tcpip-interfaces-interface-unicastipaddresses-ipaddress
  • https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/networking-mpssvc-svc-firewallgroups-firewallgroup
  • https://github.com/cloudbase/unattended-setup-scripts/blob/master/Autounattend.xml
  • https://www.starwindsoftware.com/blog/specialize-windows-server-hyper-v-guest-os-automatically
  • https://blogs.technet.microsoft.com/heyscriptingguy/2012/09/06/use-powershell-3-0-to-rename-network-adapters/
  • https://blogs.technet.microsoft.com/heyscriptingguy/2012/11/21/use-powershell-to-configure-the-nic-on-windows-server-2012/
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2024-5-5 02:08 , Processed in 0.058278 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表