Windows无人值守文件unattend制作以及自定义系统安装

摘要:
之后,我将发布我自己的生产流程供您学习。仅供学习,如有侵权请联系我,我将删除此文。建议:PowerShellScripting CreateUSBInstallMediaforWindows10 CreateWindows10ISOimagefromExistingInstallation如果无法使用上述连接,请下载以下文件以供本地查看:链接:https://pan.baidu.com/s/1UrenJjozuH71maaQ9wqHFg提取代码:zgho我的测试:cn_windows_server_2019_x64_ dvd_ 4de40f33的无人值守配置:下载:ed2k://|file|cn_windows_server_2019_664_dvd_4e40f33.iso|5086887936|7DCDDD6B0C60A0D019B6A93D8F2B6D31|/autounattend.xml˂?

原文链接:Create media for automated unattended install of Windows 10

  我从来没看到过像上面的文章一样这么详细的描述过Windows10的无人值守安装过程,看完长知识了,值得一看。之后我会将自己的制作过程发出来,让大家学习一下。

  只为了学习,如果有侵权请您联系我,我会将此文删除。

推荐:

  PowerShell Scripting - Create USB Install Media for Windows 10 

  Create Windows 10 ISO image from Existing Installation


如果上方的连接无法使用,请下载以下文件,本地查看:

链接:https://pan.baidu.com/s/1UrenJjozuH71maaQ9wqHFg
提取码:zgho


 我的测试:

cn_windows_server_2019_x64_dvd_4de40f33的无人值守配置:

下载:

ed2k://|file|cn_windows_server_2019_x64_dvd_4de40f33.iso|5086887936|7DCDDD6B0C60A0D019B6A93D8F2B6D31|/

autounattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" 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>zh-CN</UILanguage>
            </SetupUILanguage>
            <SystemLocale>zh-CN</SystemLocale>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UILanguage>zh-CN</UILanguage>
            <InputLocale>0804:{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}{FA550B04-5AD7-411F-A5AC-CA038EC515D7}</InputLocale>
            <UserLocale>zh-CN</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>450</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>4</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>3</Order>
                            <Size>100</Size>
                            <Type>MSR</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Size>300</Size>
                            <Type>EFI</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Order>1</Order>
                            <Label>WinRE</Label>
                            <Format>NTFS</Format>
                            <PartitionID>1</PartitionID>
                            <TypeID>DE94BBA4-06D1-4D40-A16A-BFD50179D6AC</TypeID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>2</Order>
                            <Format>FAT32</Format>
                            <Label>System</Label>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>4</Order>
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Letter>C</Letter>
                            <PartitionID>4</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Order>3</Order>
                            <PartitionID>3</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>4</PartitionID>
                    </InstallTo>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key>MFY9F-XBN2F-TYFMP-CCV49-RMYVH</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <Organization>FeiQuan</Organization>
            </UserData>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:e:/system/win/win%20server%202019/cn_windows_server_2019_x64_dvd_4de40f33/sources/install.wim#Windows Server 2019 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

unattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" processorArchitecture="wow64" 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>0804:{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}{FA550B04-5AD7-411F-A5AC-CA038EC515D7}</InputLocale>
            <SystemLocale>zh-CN</SystemLocale>
            <UILanguage>zh-CN</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>zh-CN</UserLocale>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>1</ProtectYourPC>
                <UnattendEnableRetailDemo>false</UnattendEnableRetailDemo>
            </OOBE>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Description>Main local admin account</Description>
                        <DisplayName>Admin</DisplayName>
                        <Group>Administrators</Group>
                        <Name>Admin</Name>
                    </LocalAccount>
                    <LocalAccount wcm:action="add">
                        <Description>Daily standand account</Description>
                        <DisplayName>User</DisplayName>
                        <Group>Users</Group>
                        <Name>Fei</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <RegisteredOrganization>FeiQuan</RegisteredOrganization>
            <RegisteredOwner>fei</RegisteredOwner>
            <TimeZone>China Standard Time</TimeZone>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <OEMInformation>
                <Manufacturer>FeiQuan</Manufacturer>
                <Logo>C:WindowsSystem32oemlogo.bmp</Logo>
                <SupportHours>24/7</SupportHours>
                <SupportPhone>+86 184********</SupportPhone>
                <SupportURL>https://www.cnblogs.com/feiquan/</SupportURL>
            </OEMInformation>
            <CopyProfile>true</CopyProfile>
            <OEMName>FeiQuan</OEMName>
            <RegisteredOrganization>FeiQuan</RegisteredOrganization>
            <RegisteredOwner>fei</RegisteredOwner>
            <TimeZone>China Standard Time</TimeZone>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:e:/system/win/win%20server%202019/cn_windows_server_2019_x64_dvd_4de40f33/sources/install.wim#Windows Server 2019 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

在执行完无人值守的文件后,默认会进入Administrator的账户密码设置界面,设置完成后,就直接可以登录。

已经内建了,admin与User用户,首次登录要自己设置密码。

  我已经自己打包过一个带有分装软件和主题等设置的ISO,可以正常安装。我就不提供了,你们自己定制吧。

ISO制作Create Windows 10 ISO image from Existing Installation5.5部分

oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,b.iso_filesootetfsboot.com#pEF,e,b.iso_filesefimicrosoftootefisys.bin  .iso_files .win10Server.iso

通过WDS部署服务的话:按照原文教程(Create media for automated unattended install of Windows 10)制作的话是没法识别其中的镜像的,估计因该是这条命令没加以下参数(红色加粗部分)吧:

install.wim制作:

dism /capture-image /imagefile:C:Imageinstall.wim /capturedir:C: /ScratchDir:C:Scratch /name:"W10Server" /compress:maximum /checkintegrity /verify /bootable  /DESCRIPTION:"W10Server" /FLAGS:ServerStandard /DISPLAYNAME:"W10Server" /DISPLAYDESCRIPTION:"W10Server by Feiquan"

我还没测试,没时间了,有时间我会测试下的。

我是通过对比install.wim的信息得出的,制作完后,只有name,没有以下红色部分,可能不完整:

    <NAME>Windows Server 2019 SERVERSTANDARD</NAME>
    <DESCRIPTION>Windows Server 2019 SERVERSTANDARD</DESCRIPTION>
    <FLAGS>ServerStandard</FLAGS>
    <DISPLAYNAME>Windows Server 2019 Standard (桌面体验)</DISPLAYNAME>
    <DISPLAYDESCRIPTION>此选项将安装的完整的 Windows 图形环境,占用额外的驱动器空间。如果你想要使用 Windows 桌面或需要桌面的应用,则它会很有用。</DISPLAYDESCRIPTION>

通过以下命令查看你制作的install.wim信息:

imagex /info install.wim路径

有关域中的无人值守看这里:http://www.07net01.com/storage_networking/WDSer_wurenzhishouanzhuang_488529_1372741620.html?qqdrsign=047

免责声明:文章转载自《Windows无人值守文件unattend制作以及自定义系统安装》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇SQL列数据转换为字符串数据库垂直拆分 水平拆分下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

SAP UI5 使用 Smart Control 的一个具体例子

我们在本地 Visual Studio Code 里, 按照下面两篇文章,完成了 SAP UI5 的应用开发, 使用 yo 命令行向导创建 SAP UI5 应用 使用 yo 命令行向导给 SAP UI5 应用添加一个新的视图 最后能得到一个列表,效果如下: 本文我们使用 SAP UI5 提供的 Smart 控件来继续丰富这个应用。 从下面三个 nam...

用C#创建Windows服务(Windows Services)并打包!

用C#创建Windows服务(Windows Services) Windows服务在Visual Studio 以前的版本中叫NT服务,在VS.net启用了新的名称。用Visual C# 创建Windows服务不是一件困难的事,本文就将指导你一步一步创建一个Windows服务并使用它。这个服务在启动和停止时,向一个文本文件中写入一些文字信息。 第一步:创...

MySQL最新版本 MySQL5.7.11 批量自动化一键式安装(转)

--背景云端 以前都喜欢了源码安装MySQL,总觉得源码是高大上的事情,不过源码也需要时间,特别是make的时候,如果磁盘和cpu差的话,时间很长很长,在虚拟机上安装mysql尤其甚慢了。 现在业务发展了,开始在云上部署了,需要经常安装mysql,有的时候一次部署很多台,如果还是源码安装一个个去执行,效率就比较差了,所以准备采用更快效率的二进制来实现一键式...

npm之基本使用

基本命令 1.初始化项目(生成package.json) npm init 2.添加依赖 npm install(i) [package]@[version] (-S/-D) (-g) 参数解析: 1.install(i) install有一个简写i 2.[package]@[version] package为npm包名,后面的@[version]可...

Ubuntu18.04安装

1.下载下载ubuntu-18.04-desktop-amd64.iso文件到计算机,记忆存放目录位置。下载网址:https://www.ubuntu.com/download/desktop注意下方标注红线的几段话:官方给出了安装环境的硬件建议:1)建议cpu 为2 GHZ双核处理器或更好。2)内存2GB+3)硬盘25GB+ 2.VMware下安装Ubu...

sspanel搭建教程

教程演示环境及工具准备: vultr家的主机 【新用户注册可获取50美金】 CentOS 7X64 【每月5美元,无限流量】 ssh工具:xshell点击下载 1.安装宝塔面板 yum install -y wget && wget -O install.sh http://download.bt.cn/install/instal...