none
WDS无人值守部署过程中能否进行指定软件推送! RRS feed

  • 问题

  • 尊敬的微软工程师,

    请教一下,WDS无人值守部署过程中能否进行指定软件推送!我记得WDS好像无法满足这个需求,在此求证!!

    貌似只有MDT和SCCM可以完成软件推送。。


    谷青松

    2020年12月29日 5:55

答案

  • 你说的不对,我测试结果WDS可以进行应用程序安装的推送,形式和MDT很像。

    无人值守应答文件具体内容如下(加粗部分为执行exe安装程序的语句):

    <?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>
                    <WillShowUI>OnError</WillShowUI>
                </SetupUILanguage>
                <InputLocale>zh-cn</InputLocale>
                <SystemLocale>zh-cn</SystemLocale>
                <UILanguage>zh-cn</UILanguage>
                <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>50000</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>2</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>OS</Label>
                                <Letter>C</Letter>
                                <PartitionID>1</PartitionID>
                                <Order>1</Order>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                                <Letter>E</Letter>
                                <Label>BK</Label>
                                <Format>NTFS</Format>
                                <Active>true</Active>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                </UserData>
                <WindowsDeploymentServices>
                    <Login>
                        <Credentials>
                            <Username>administrator</Username>
                            <Password>123.com</Password>
                            <Domain>WIN-ICLTMU5ODNR</Domain>
                        </Credentials>
                    </Login>
                    <ImageSelection>
                        <InstallImage>
                            <Filename>install.wim</Filename>
                            <ImageGroup>Windows2019os</ImageGroup>
                            <ImageName>Windows Server 2019 SERVERSTANDARD</ImageName>
                        </InstallImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                    </ImageSelection>
                </WindowsDeploymentServices>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <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">
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                    <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cmd /c \\1.1.1.1\w2016\security4win_v11_202012.exe</CommandLine>
                        <Order>1</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <Description>install security4win</Description>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <AutoLogon>
                    <Password>
                        <Value>MQAyADMALgBjAG8AbQBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <Domain></Domain>
                    <Username>administrator</Username>
                    <LogonCount>1</LogonCount>
                </AutoLogon>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>MQAyADMALgBjAG8AbQBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:c:/temp/install_windows server 2019 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>


    谷青松

    • 已标记为答案 谷青松 2020年12月30日 1:51
    2020年12月30日 1:48

全部回复

  • 你好,

    是的,WDS无法推送,需要集成MDT或者SCCM.因为需要建软件发布点。WDS没有这个功能。

    只能是将软件安装提前在系统安装好,然后定制这个镜像使用WDS安装系统。


    针对Windows 2008/2008R2的扩展支持将于2020年结束,之后微软将不再为其提供安全更新。点击此处或扫描二维码获取《在 Azure 上运行 Windows Server 的终极指南》,把握良机完成云迁移并实现业务现代化。

    2020年12月29日 10:02
  • 你说的不对,我测试结果WDS可以进行应用程序安装的推送,形式和MDT很像。

    无人值守应答文件具体内容如下(加粗部分为执行exe安装程序的语句):

    <?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>
                    <WillShowUI>OnError</WillShowUI>
                </SetupUILanguage>
                <InputLocale>zh-cn</InputLocale>
                <SystemLocale>zh-cn</SystemLocale>
                <UILanguage>zh-cn</UILanguage>
                <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>50000</Size>
                                <Type>Primary</Type>
                            </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>2</Order>
                                <Type>Primary</Type>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Active>true</Active>
                                <Format>NTFS</Format>
                                <Label>OS</Label>
                                <Letter>C</Letter>
                                <PartitionID>1</PartitionID>
                                <Order>1</Order>
                            </ModifyPartition>
                            <ModifyPartition wcm:action="add">
                                <Order>2</Order>
                                <PartitionID>2</PartitionID>
                                <Letter>E</Letter>
                                <Label>BK</Label>
                                <Format>NTFS</Format>
                                <Active>true</Active>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <DiskID>0</DiskID>
                        <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                </UserData>
                <WindowsDeploymentServices>
                    <Login>
                        <Credentials>
                            <Username>administrator</Username>
                            <Password>123.com</Password>
                            <Domain>WIN-ICLTMU5ODNR</Domain>
                        </Credentials>
                    </Login>
                    <ImageSelection>
                        <InstallImage>
                            <Filename>install.wim</Filename>
                            <ImageGroup>Windows2019os</ImageGroup>
                            <ImageName>Windows Server 2019 SERVERSTANDARD</ImageName>
                        </InstallImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                    </ImageSelection>
                </WindowsDeploymentServices>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <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">
                <OOBE>
                    <HideEULAPage>true</HideEULAPage>
                    <HideLocalAccountScreen>true</HideLocalAccountScreen>
                    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                    <NetworkLocation>Work</NetworkLocation>
                    <ProtectYourPC>3</ProtectYourPC>
                    <SkipMachineOOBE>true</SkipMachineOOBE>
                    <SkipUserOOBE>true</SkipUserOOBE>
                </OOBE>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>cmd /c \\1.1.1.1\w2016\security4win_v11_202012.exe</CommandLine>
                        <Order>1</Order>
                        <RequiresUserInput>true</RequiresUserInput>
                        <Description>install security4win</Description>
                    </SynchronousCommand>
                </FirstLogonCommands>
                <AutoLogon>
                    <Password>
                        <Value>MQAyADMALgBjAG8AbQBQAGEAcwBzAHcAbwByAGQA</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <Enabled>true</Enabled>
                    <Domain></Domain>
                    <Username>administrator</Username>
                    <LogonCount>1</LogonCount>
                </AutoLogon>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>MQAyADMALgBjAG8AbQBBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="catalog:c:/temp/install_windows server 2019 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>


    谷青松

    • 已标记为答案 谷青松 2020年12月30日 1:51
    2020年12月30日 1:48