Deployment

預配包不會應用更改,即使它在 MDT 部署後出現在 Provisions 文件夾中

  • April 28, 2018

我創建了一個預配包,用於將 Windows 10 1709 部署到我們的組織。我在我的任務序列中創建了一個在安裝後成功應用包的任務。

所需的更改是自定義開始菜單佈局。我最初還嘗試添加預設本地帳戶和其他一些小調整,但後來為了測試而縮小到僅開始菜單。

沒有應用任何自定義項,而是獲得了一個預設的開始菜單,其中包含所有煩人的 Windows 應用商店應用程序。

這是我來自 Window Config Designer (WICD) 的自定義文件:

<?xml version="1.0" encoding="utf-8"?>
<WindowsCustomizations>
 <PackageConfig xmlns="urn:schemas-Microsoft-com:Windows-ICD-Package-Config.v1.0">
   <ID>{97a60676-1678-46f3-b45a-7aead27c9711}</ID>
   <Name>OrgName</Name>
   <Version>1.2</Version>
   <OwnerType>ITAdmin</OwnerType>
   <Rank>0</Rank>
   <Notes></Notes>
 </PackageConfig>
 <Settings xmlns="urn:schemas-microsoft-com:windows-provisioning">
   <Customizations>
     <Common>
       <Policies>
         <Start>
           <StartLayout><LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
                 <LayoutOptions StartTileGroupCellWidth="6" />
                 <DefaultLayoutOverride>
                   <StartLayoutCollection>
                     <defaultlayout:StartLayout GroupCellWidth="6">
                       <start:Group Name="Communications">
                         <start:DesktopApplicationTile Size="1x1" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="1" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Skype for Business 2016.lnk" />
                       </start:Group>
                       <start:Group Name="Tools and Tips">
                         <start:Tile Size="1x1" Column="0" Row="0" AppUserModelID="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
                         <start:Tile Size="1x1" Column="2" Row="0" AppUserModelID="Microsoft.Getstarted_8wekyb3d8bbwe!App" />
                         <start:DesktopApplicationTile Size="1x1" Column="1" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Snipping Tool.lnk" />
                         <start:Tile Size="1x1" Column="3" Row="0" AppUserModelID="Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App" />
                       </start:Group>
                       <start:Group Name="Office 2016">
                         <start:DesktopApplicationTile Size="1x1" Column="1" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="2" Row="1" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Access 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="1" Row="1" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\OneNote 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="0" Row="1" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Publisher 2016.lnk" />
                       </start:Group>
                       <start:Group Name="Browse the Web">
                         <start:DesktopApplicationTile Size="1x1" Column="0" Row="0" DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" />
                         <start:Tile Size="1x1" Column="2" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
                         <start:DesktopApplicationTile Size="1x1" Column="3" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk" />
                         <start:DesktopApplicationTile Size="1x1" Column="1" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Firefox.lnk" />
                       </start:Group>
                     </defaultlayout:StartLayout>
                   </StartLayoutCollection>
                 </DefaultLayoutOverride>
                 <CustomTaskbarLayoutCollection PinListPlacement="Replace">
                   <defaultlayout:TaskbarLayout>
                     <taskbar:TaskbarPinList>
                       <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"/>
                   <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk"/>
                   <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook 2016.lnk"/>
                   <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk"/>
                   <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel 2016.lnk"/>
                   <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint 2016.lnk"/>
                     </taskbar:TaskbarPinList>
                   </defaultlayout:TaskbarLayout>
                 </CustomTaskbarLayoutCollection>
               </LayoutModificationTemplate></StartLayout>
         </Start>
       </Policies>
     </Common>
   </Customizations>
 </Settings>
</WindowsCustomizations>

這是我來自 MDT 的應用命令:

DISM.exe /Image:%OSDisk%\ /Add-ProvisioningPackage /PackagePath:%DEPLOYROOT%\ProvPackages\DefaultPackage.ppkg

以下網站為我提供了有關如何做到這一點的參考,但我無法繼續,也無法找到其他網路資源來弄清楚為什麼事情不適用: https ://docs.microsoft.com/en-us /windows/configuration/customize-windows-10-start-screens-by-using-provisioning-packages-and-icd

您導入的 XML 佈局已損壞。看來您手動添加的內容不正確。

您添加了該<taskbar:TaskbarPinList>部分並且沒有在文件開頭聲明它: xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"

這是範例 XML 文件,您的應該遵循相同的格式。

<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
   xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
   xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
   xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
   xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
   Version="1">
 <LayoutOptions StartTileGroupCellWidth="6" StartTileGroupsColumnCount="1" />
 <DefaultLayoutOverride>
   <StartLayoutCollection>
     <defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
       <start:Group Name="Life at a glance" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
         <start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
         <start:Tile Size="2x2" Column="4" Row="0" AppUserModelID="Microsoft.Windows.Cortana_cw5n1h2txyewy!CortanaUI" />
         <start:Tile Size="2x2" Column="2" Row="0" AppUserModelID="Microsoft.BingWeather_8wekyb3d8bbwe!App" />
       </start:Group>        
     </defaultlayout:StartLayout>
   </StartLayoutCollection>
 </DefaultLayoutOverride>
   <CustomTaskbarLayoutCollection>
     <defaultlayout:TaskbarLayout>
       <taskbar:TaskbarPinList>
         <taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
         <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
       </taskbar:TaskbarPinList>
     </defaultlayout:TaskbarLayout>
   </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

https://docs.microsoft.com/en-us/windows/configuration/configure-windows-10-taskbar#sample-taskbar-configuration-added-to-start-layout-xml-file

引用自:https://serverfault.com/questions/909774