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

原文链接: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

 

"1.0" encoding="utf-8"?>
"urn:schemas-microsoft-com:unattend">
    "windowsPE">
        "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">
            
                zh-CN
            
            zh-CN
            en-US
            zh-CN
            0804:{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}{FA550B04-5AD7-411F-A5AC-CA038EC515D7}
            zh-CN
        
        "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">
            
                "add">
                    
                        "add">
                            1
                            450
                            Primary
                        
                        "add">
                            true
                            4
                            Primary
                        
                        "add">
                            3
                            100
                            MSR
                        
                        "add">
                            2
                            300
                            EFI
                        
                    
                    
                        "add">
                            1
                            
                            NTFS
                            1
                            DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
                        
                        "add">
                            2
                            FAT32
                            
                            2
                        
                        "add">
                            4
                            NTFS
                            
                            C
                            4
                        
                        "add">
                            3
                            3
                        
                    
                    0
                    true
                
            
            
                
                    
                        0
                        4
                    
                
            
            
                
                    MFY9F-XBN2F-TYFMP-CCV49-RMYVH
                
                true
                FeiQuan
            
        
    
    "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.xml

"1.0" encoding="utf-8"?>
"urn:schemas-microsoft-com:unattend">
    "oobeSystem">
        "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">
            0804:{81D4E9C9-1D3B-41BC-9E6C-4B40BF79E35E}{FA550B04-5AD7-411F-A5AC-CA038EC515D7}
            zh-CN
            zh-CN
            en-US
            zh-CN
        
        "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">
            
                true
                true
                true
                true
                1
                false
            
            
                
                    "add">
                        Main local admin account
                        Admin
                        Administrators
                        Admin
                    
                    "add">
                        Daily standand account
                        User
                        Users
                        Fei
                    
                
            
            FeiQuan
            fei
            China Standard Time
        
    
    "specialize">
        "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">
            
                FeiQuan
                C:\Windows\System32\oemlogo.bmp
                24/7
                +86 184********
                https://www.cnblogs.com/feiquan/
            
            true
            FeiQuan
            FeiQuan
            fei
            China Standard Time
        
    
    "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" />

 

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

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

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

ISO制作(Create Windows 10 ISO image from Existing Installation)5.5部分

oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,b.\iso_files\boot\etfsboot.com#pEF,e,b.\iso_files\efi\microsoft\boot\efisys.bin  .\iso_files .\win10Server.iso

 


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

install.wim制作:

dism /capture-image /imagefile:C:\Image\install.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,没有以下红色部分,可能不完整:

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

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

imagex /info install.wim路径

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

你可能感兴趣的:(Windows无人值守文件unattend制作以及自定义系统安装)