Windows 10 2016 LTSB 自动无人值守正在删除功能

Windows 10 2016 LTSB 自动无人值守正在删除功能

我正在尝试使用 autounattended.xml 文件设置 writefilter/embeddedboot/keyboardfilter 来安装 Windows。我遇到的问题是如果没有应答文件并且我手动安装 Windows。当我进入桌面并运行时:

dism /online /get-features 

该命令显示所有设备锁定功能,如 writefilter。但如果我创建一个 autounattened.xml 文件并将其与安装 usb 放在一起。dism /online /get-features 仅显示 Client-EmbeddedShellLauncher,没有其他内容。日志没有提到跳过或丢失包

我的答案文件是:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing>
        <package action="install">
            <assemblyIdentity name="Microsoft-Windows-EnterpriseSEdition" version="10.0.14393.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
            <selection name="Microsoft-Hyper-V-ClientEdition-Package" state="false" />
        </package>
        <package action="install">
            <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="10.0.14393.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
            <selection name="Client-DeviceLockdown" state="true" />
            <selection name="Client-EmbeddedBootExp" state="true" />
            <selection name="Client-EmbeddedLogon" state="true" />
            <selection name="Client-EmbeddedShellLauncher" state="true" />
            <selection name="Client-KeyboardFilter" state="true" />
            <selection name="Client-UnifiedWriteFilter" state="true" />
            <selection name="LegacyComponents" state="true" />
            <selection name="DirectPlay" state="true" />
            <selection name="Microsoft-Windows-Client-EmbeddedExp-Package" state="false" />
            <selection name="Microsoft-Windows-Printing-PrintToPDFServices-Package" state="false" />
            <selection name="Microsoft-Windows-Printing-XPSServices-Package" state="false" />
            <selection name="MSRDC-Infrastructure" state="false" />
            <selection name="Printing-PrintToPDFServices-Features" state="false" />
            <selection name="Printing-Foundation-Features" state="false" />
            <selection name="Printing-XPSServices-Features" state="false" />
            <selection name="SearchEngine-Client-Package" state="false" />
            <selection name="SimpleTCP" state="true" />
            <selection name="WorkFolders-Client" state="false" />
            <selection name="Xps-Foundation-Xps-Viewer" state="false" />
        </package>
    </servicing>
    <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>en-US</UILanguage>
            </SetupUILanguage>
            <InputLocale>1009:00000409</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UILanguageFallback>en-US</UILanguageFallback>
            <UserLocale>en-CA</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>100</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Order>2</Order>
                            <Type>Primary</Type>
                            <Extend>true</Extend>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System Reserved</Label>
                            <PartitionID>1</PartitionID>
                            <Order>1</Order>
                            <TypeID>0x27</TypeID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>OS</Label>
                            <Letter>C</Letter>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <PartitionID>2</PartitionID>
                        <DiskID>0</DiskID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <WillShowUI>OnError</WillShowUI>
                    <Key></Key>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
                <FullName>test</FullName>
                <Organization>Panacea</Organization>
            </UserData>
            <EnableFirewall>true</EnableFirewall>
            <EnableNetwork>true</EnableNetwork>
        </component>
    </settings>
    <settings pass="offlineServicing">
        <component name="Microsoft-Windows-Embedded-EmbeddedLogon" 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">
            <AnimationDisabled>1</AnimationDisabled>
            <BrandingNeutral>32</BrandingNeutral>
            <HideAutoLogonUI>1</HideAutoLogonUI>
            <NoLockScreen>1</NoLockScreen>
        </component>
        <component name="Microsoft-Windows-Embedded-KeyboardFilterService" 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">
            <AltF4>Blocked</AltF4>
            <AltSpace>Blocked</AltSpace>
            <AltTab>Blocked</AltTab>
            <AltWin>Blocked</AltWin>
            <Application>Blocked</Application>
            <BrowserFavorites>Blocked</BrowserFavorites>
            <ControlAltDelete>Blocked</ControlAltDelete>
            <ControlEscape>Blocked</ControlEscape>
            <ControlTab>Blocked</ControlTab>
            <ControlWindowsF>Blocked</ControlWindowsF>
            <CtrlF4>Blocked</CtrlF4>
            <CtrlWin>Blocked</CtrlWin>
            <Escape>Blocked</Escape>
            <F21>Blocked</F21>
            <ForceOffAccessibility>true</ForceOffAccessibility>
            <LaunchApp1>Blocked</LaunchApp1>
            <LaunchApp2>Blocked</LaunchApp2>
            <LaunchMail>Blocked</LaunchMail>
            <LaunchMediaSelect>Blocked</LaunchMediaSelect>
            <LeftShiftLeftAltNumLock>Blocked</LeftShiftLeftAltNumLock>
            <LeftShiftLeftAltPrintScreen>Blocked</LeftShiftLeftAltPrintScreen>
            <ShiftControlEscape>Blocked</ShiftControlEscape>
            <ShiftWin>Blocked</ShiftWin>
            <Windows>Blocked</Windows>
            <WindowsB>Blocked</WindowsB>
            <WindowsBreak>Blocked</WindowsBreak>
            <WindowsC>Blocked</WindowsC>
            <WindowsComma>Blocked</WindowsComma>
            <WindowsD>Blocked</WindowsD>
            <WindowsDown>Blocked</WindowsDown>
            <WindowsE>Blocked</WindowsE>
            <WindowsEnter>Blocked</WindowsEnter>
            <WindowsEscape>Blocked</WindowsEscape>
            <WindowsF>Blocked</WindowsF>
            <WindowsF1>Blocked</WindowsF1>
            <WindowsH>Blocked</WindowsH>
            <WindowsHome>Blocked</WindowsHome>
            <WindowsI>Blocked</WindowsI>
            <WindowsJ>Blocked</WindowsJ>
            <WindowsK>Blocked</WindowsK>
            <WindowsL>Blocked</WindowsL>
            <WindowsLeft>Blocked</WindowsLeft>
            <WindowsM>Blocked</WindowsM>
            <WindowsMinus>Blocked</WindowsMinus>
            <WindowsO>Blocked</WindowsO>
            <WindowsP>Blocked</WindowsP>
            <WindowsPageDown>Blocked</WindowsPageDown>
            <WindowsPageUp>Blocked</WindowsPageUp>
            <WindowsPeriod>Blocked</WindowsPeriod>
            <WindowsPlus>Blocked</WindowsPlus>
            <WindowsQ>Blocked</WindowsQ>
            <WindowsR>Blocked</WindowsR>
            <WindowsRight>Blocked</WindowsRight>
            <WindowsShiftDown>Blocked</WindowsShiftDown>
            <WindowsShiftLeft>Blocked</WindowsShiftLeft>
            <WindowsShiftRight>Blocked</WindowsShiftRight>
            <WindowsShiftUp>Blocked</WindowsShiftUp>
            <WindowsSlash>Blocked</WindowsSlash>
            <WindowsSpace>Blocked</WindowsSpace>
            <WindowsT>Blocked</WindowsT>
            <WindowsTab>Blocked</WindowsTab>
            <WindowsU>Blocked</WindowsU>
            <WindowsUp>Blocked</WindowsUp>
            <WindowsV>Blocked</WindowsV>
            <WindowsW>Blocked</WindowsW>
            <WindowsZ>Blocked</WindowsZ>
        </component>
    </settings>
    <settings pass="specialize">
        <component name="Microsoft-Windows-Embedded-EmbeddedLogon" 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">
            <AnimationDisabled>1</AnimationDisabled>
            <BrandingNeutral>32</BrandingNeutral>
            <HideAutoLogonUI>1</HideAutoLogonUI>
            <NoLockScreen>1</NoLockScreen>
        </component>
        <component name="Microsoft-Windows-Embedded-BootExp" 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">
            <DisableBootMenu>1</DisableBootMenu>
            <DisplayDisabled>1</DisplayDisabled>
            <HideAllBootUI>1</HideAllBootUI>
            <HideBootLogo>1</HideBootLogo>
            <HideBootStatusIndicator>1</HideBootStatusIndicator>
            <HideBootStatusMessage>1</HideBootStatusMessage>
        </component>
        <component name="Microsoft-Windows-Embedded-UnifiedWriteFilter" 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">
            <ProtectedVolumeList>
                <ProtectedVolumeEntry wcm:action="add">
                    <DriveLetter>C</DriveLetter>
                </ProtectedVolumeEntry>
            </ProtectedVolumeList>
            <AddAllVolumes>True</AddAllVolumes>
            <OverlayCriticalThreshold>10000</OverlayCriticalThreshold>
            <OverlayMaximumSize>10240</OverlayMaximumSize>
            <OverlayWarningThreshold>9000</OverlayWarningThreshold>
            <OverlayType>Disk overlay</OverlayType>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Embedded-ShellLauncher" 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">
            <UserSettings>
                <User wcm:action="add">
                    <AccountName>test</AccountName>
                    <DefaultReturnCodeAction>0</DefaultReturnCodeAction>
                    <Key>1</Key>
                    <Shell>notepad</Shell>
                </User>
            </UserSettings>
        </component>
        <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">
            <AutoLogon>
                <Password>
                    <Value>UABAAG6QABjAGUAQABQAGEAc6BzAHcAb6ByAGQA</Value>
                    <PlainText>false</PlainText>
                </Password>
                <Domain>.</Domain>
                <Enabled>true</Enabled>
                <LogonCount>5</LogonCount>
                <Username>test</Username>
            </AutoLogon>
            <OOBE>
                <VMModeOptimizations>
                    <SkipAdministratorProfileRemoval>true</SkipAdministratorProfileRemoval>
                    <SkipNotifyUILanguageChange>true</SkipNotifyUILanguageChange>
                    <SkipWinREInitialization>true</SkipWinREInitialization>
                </VMModeOptimizations>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <Themes>
                <WindowColor>Color 2</WindowColor>
                <DefaultThemesOff>true</DefaultThemesOff>
            </Themes>
            <UserAccounts>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Password>
                            <Value>UABAAG6QABjAGUAQABQAGEAc6BzAHcAb6ByAGQA</Value>
                            <PlainText>false</PlainText>
                        </Password>
                        <Name>test</Name>
                        <Group>Administrators</Group>
                        <DisplayName>test</DisplayName>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
            <VisualEffects>
                <FontSmoothing>ClearType</FontSmoothing>
            </VisualEffects>
            <WindowsFeatures>
                <ShowInternetExplorer>false</ShowInternetExplorer>
                <ShowMediaCenter>false</ShowMediaCenter>
                <ShowWindowsMediaPlayer>false</ShowWindowsMediaPlayer>
            </WindowsFeatures>
        </component>
        <component name="Microsoft-Windows-Embedded-BootExp" 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">
            <DisableBootMenu>1</DisableBootMenu>
            <DisplayDisabled>1</DisplayDisabled>
            <HideAllBootUI>1</HideAllBootUI>
            <HideBootLogo>1</HideBootLogo>
            <HideBootStatusIndicator>1</HideBootStatusIndicator>
            <HideBootStatusMessage>1</HideBootStatusMessage>
        </component>
    </settings>
</unattend>

编辑

因此,如果我删除 client-embedded-bootexp 和两个包等配置,它现在会显示在 /get-features 中。这是应答文件的错误吗?

答案1

如果没有更多关于你如何做事的信息,我认为你的包操作是错误的,不是“安装”,而应该是“配置”

这是一个例子。我应该指出,我很少手动编辑这些文件。

<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
    <package action="configure">
        <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="10.0.14393.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
        <selection name="Microsoft-Hyper-V-Common-Drivers-Package" state="false" />
        <selection name="Microsoft-Hyper-V-Guest-Integration-Drivers-Package" state="false" />
        <selection name="Microsoft-Windows-Printing-PrintToPDFServices-Package" state="false" />
        <selection name="Microsoft-Windows-Printing-XPSServices-Package" state="false" />
        <selection name="Printing-Foundation-Features" state="false" />
        <selection name="Printing-PrintToPDFServices-Features" state="false" />
        <selection name="Printing-XPSServices-Features" state="false" />
        <selection name="SMB1Protocol" state="false" />
        <selection name="WorkFolders-Client" state="false" />
        <selection name="Xps-Foundation-Xps-Viewer" state="false" />
        <selection name="Client-DeviceLockdown" state="true" />
        <selection name="Client-EmbeddedBootExp" state="true" />
        <selection name="Client-KeyboardFilter" state="true" />
        <selection name="Client-UnifiedWriteFilter" state="true" />
    </package>

这是正在进行的工作的一个示例。我正在使用 Windows 系统映像管理器生成包含驱动程序安装等内容的配置集。

相关内容