windows-itpro-docs/windows/deployment/add-store-apps-to-image.md

4.9 KiB

title, description, keywords, ms.prod, ms.mktglfcycl, ms.localizationpriority, ms.sitesec, ms.pagetype, author, ms.author, ms.date, ms.topic
title description keywords ms.prod ms.mktglfcycl ms.localizationpriority ms.sitesec ms.pagetype author ms.author ms.date ms.topic
Add Microsoft Store for Business applications to a Windows 10 image This topic describes how to add Microsoft Store for Business applications to a Windows 10 image. upgrade, update, windows, windows 10, deploy, store, image, wim w10 deploy medium library deploy greg-lindsay greglin 07/27/2017 article

Add Microsoft Store for Business applications to a Windows 10 image

Applies to

  • Windows 10

This topic describes the correct way to add Microsoft Store for Business applications to a Windows 10 image. This will enable you to deploy Windows 10 with pre-installed Microsoft Store for Business apps.

Important

In order for Microsoft Store for Business applications to persist after image deployment, these applications need to be pinned to Start prior to image deployment.

Prerequisites

Note

If you'd like to add an internal LOB Microsoft Store application, please follow the instructions on Sideload LOB apps in Windows 10.

Adding a Store application to your image

On a machine where your image file is accessible:

  1. Open Windows PowerShell with administrator privileges.
  2. Mount the image. At the Windows PowerShell prompt, type: Mount-WindowsImage -ImagePath c:\images\myimage.wim -Index 1 -Path C:\test
  3. Use the Add-AppxProvisionedPackage cmdlet in Windows PowerShell to preinstall the app. Use the /PackagePath option to specify the location of the Store package and /LicensePath to specify the location of the license .xml file. In Windows PowerShell, type: Add-AppxProvisionedPackage -Path C:\test -PackagePath C:\downloads\appxpackage -LicensePath C:\downloads\appxpackage\license.xml

Note

Paths and file names are examples. Use your paths and file names where appropriate.

Do not dismount the image, as you will return to it later.

Editing the Start Layout

In order for Microsoft Store for Business applications to persist after image deployment, these applications need to be pinned to Start prior to image deployment.

On a test machine:

  1. Install the Microsoft Store for Business application you previously added to your image.
  2. Pin these apps to the Start screen, by typing the name of the app, right-clicking and selecting Pin to Start.
  3. Open Windows PowerShell with administrator privileges.
  4. Use Export-StartLayout -path <path><file name>.xml where is the path and name of the xml file your will later import into your Windows Image.
  5. Copy the XML file you created to a location accessible by the machine you previously used to add Store applications to your image.

Now, on the machine where your image file is accessible:

  1. Import the Start layout. At the Windows PowerShell prompt, type: Import-StartLayout -LayoutPath "<path><file name>.xml" -MountPath "C:\test\"
  2. Save changes and dismount the image. At the Windows PowerShell prompt, type: Dismount-WindowsImage -Path c:\test -Save

Note

Paths and file names are examples. Use your paths and file names where appropriate.

For more information on Start customization see Windows 10 Start Layout Customization