# 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](#prerequisites) - [Obtaining the Package ID of the software](#obtaining-the-package-id-of-the-software) 2. [Adding the Script to Script Repository](#adding-the-script-to-script-repository) 3. [Deploying the store app using Custom Script configuration](#deploying-the-store-app-using-custom-script-configuration) ## Prerequisites ### Obtaining the Package ID of the software 1. Navigate to [Microsoft Store](https://apps.microsoft.com/store/apps) 2. Search for the required app in the Microsoft Store and locate the package ID in the URL as shown below. [![Obtaining Package ID](https://www.manageengine.com/products/desktop-central/images/microsoft-store-app.png)](https://www.manageengine.com/products/desktop-central/images/microsoft-store-app.png) **Note:** - Kindly ensure that the end targets to which the store apps are being deployed have 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.](https://learn.microsoft.com/en-us/windows/package-manager/winget/#install-winget) ## Adding the Script to Script Repository 1. Download the given [Script](https://workdrive.zohoexternal.com/external/5f35fbd950b044b84c5d276d46a76c90acb10cd8c0db2622230c3ad19264a688) and validate the script with the given SHA 256 Checksum: `0e5bf471b973fe8d6f97747db6325ffc75072a64d786b4f7da5eef0befbf565d` [![Navigation to Add Script in Script Repository](https://www.manageengine.com/products/desktop-central/help/images/add-script-to-repo.png)](https://www.manageengine.com/products/desktop-central/help/images/add-script-to-repo.png) 2. In the console, navigate to **_Configuration > Settings > Script Repository > +Add Script_** [![Add Script in Repository](https://www.manageengine.com/products/desktop-central/images/ms-storeapp-script.png)](https://www.manageengine.com/products/desktop-central/images/ms-storeapp-script.png) 3. Upload the downloaded script in the **Script Name** field. 4. 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 [![User Custom Script Navigation](https://www.manageengine.com/products/desktop-central/help/images/user-custom-script.png)](https://www.manageengine.com/products/desktop-central/help/images/user-custom-script.png) 1. In the console, navigate to **_Configurations > Configuration > Windows Configuration > Custom Script > User Configuration_** [![Navigation to Add Script in Script Repository](https://www.manageengine.com/products/desktop-central/images/ms-store-app-config.png)](https://www.manageengine.com/products/desktop-central/images/ms-store-app-config.png) 2. Specify the **Name** and **Description** for the configuration. 3. Execute the custom script using the **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 section. 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. - Define the [target users](https://www.manageengine.com/products/desktop-central/help/defining_targets.html) 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.