Free Trial

How to deploy Microsoft store apps using Custom Script configuration?

This document provides you with steps to deploy Microsoft store apps using Custom Script configuration.

Table of Contents

  1. Prerequisites
  2. Adding the Script to Script Repository
  3. Deploying the store app using Custom Script configuration

Prerequisites

Obtaining the Package ID of the software

  1. Navigate to Microsoft Store
  2. Search for the required app in the Microsoft store and locate the package ID in the URL as shown below.  Obtaining Package ID

Note:

  • Kindly ensure that the end targets to which the store apps are being deployed has the WinGet(Windows Package Manager) command line tool.
  • WinGet is available on Windows 11, modern versions of Windows 10, and Windows Server 2025 as part of the App Installer. The WinGet tool is only supported on Windows 10 1709(Build 16299) or later versions. Learn more.

Adding the Script to Script Repository

  1. Download the given Script  and validate the script with the given SHA 256 Checksum: 0e5bf471b973fe8d6f97747db6325ffc75072a64d786b4f7da5eef0befbf565d.
  2. Navigation to Add Script in Script Repository
  3. In the console, navigate to the Configuration > Settings > Script Repository > +Add Script
  4. Upload the downloaded script in the Script Name field.
  5. Click Add to add the script in the Script Repository. The script will be available under Repository.

Deploying the store app using Custom Script configuration

  1. In the console, navigate to Configurations > Configuration > Windows Configuration > Custom Script > User Configuration. Navigation to Add Script in Script Repository
  2. Specify the Name and Description for the configuration.
  3. Execute the custom script using Repository option.
  4. Select the uploaded script from the Script Name field.
  5. In the Script Arguments field provide the store app's package ID obtained as shown in the Prerequisite.
  6. Exit codes confirm if the script has been executed successfully. By default, it is 0.
  7. If you select Enable Logging for Troubleshooting, the executed script output will be logged and it will be displayed in the Remarks section under
  • Define the target users for the deployment.
  • Click on Deploy to deploy the configuration to the target users.

You have successfully deployed Microsoft store apps using Custom Script configuration.

Was this article helpful?

Thank you for your feedback!

Sorry about that!

By clicking "Submit", you agree to processing of personal data according to thePrivacy Policy.
Back to Top