windows 无人值守安装脚本 Autounattend.xml

这个脚本都是通过windows microsoft aik 生成的 以下仅供参考 请根据实际情况来修改

 

<?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>
            <InputLocale>zh-cn</InputLocale>
            <SystemLocale>zh-cn</SystemLocale>
            <UILanguage>zh-cn</UILanguage>
            <UILanguageFallback></UILanguageFallback>
            <UserLocale>zh-cn</UserLocale>
        </component>

<!-- 64位 -->


        <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>
                <WillShowUI>OnError</WillShowUI>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>51200</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Extend>false</Extend>
                            <Format>NTFS</Format>
                            <Letter>C</Letter>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
            </DiskConfiguration>

<!-- 操作系统版本 和 安装到那个分区 -->

            <ImageInstall>
                <OSImage>
                    <InstallFrom>
                        <MetaData wcm:action="add">
                            <Key>/image/name</Key>
                            <Value>Windows Server 2008 R2 SERVERENTERPRISE</Value>
                        </MetaData>
                    </InstallFrom>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>1</PartitionID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                </OSImage>
            </ImageInstall>

<!-- 序列号和计算机名 -->

            <UserData>
                <ProductKey>
                    <WillShowUI>OnError</WillShowUI>
                    <Key>7P8GH-FV2FF-8FDCR-YK49D-D7P97</Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>Computer Name</FullName>
            </UserData>
        </component>
    </settings>
    <settings pass="oobeSystem">

<!―administrator 密码 加密的 具体请使用 AIK查询 -->
<!―administrator 时区设置 -->

        <component name="Microsoft-Windows-Shell-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">
            <UserAccounts>
                <AdministratorPassword>
                    <Value>aAB4AGEAZwBlACaaaAyADMAQQBkAG0AaQBabckAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
                    <PlainText>false</PlainText>
                </AdministratorPassword>
            </UserAccounts>
            <TimeZone>China Standard Time</TimeZone>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:e:/iso/windows2008/install_windows server 2008 r2 serverenterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

你可能感兴趣的:(windows,Microsoft,无人值守安装脚本)