Search for the required app in the Microsoft store and locate the package ID in the URL as shown below.
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
Download the given Script and validate the script with the given SHA 256 Checksum: 0e5bf471b973fe8d6f97747db6325ffc75072a64d786b4f7da5eef0befbf565d.
In the console, navigate to the Configuration > Settings > Script Repository > +Add Script
Upload the downloaded script in the Script Name field.
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
In the console, navigate to Configurations > Configuration > Windows Configuration > Custom Script > User Configuration.
Specify the Name and Description for the configuration.
Execute the custom script using Repository option.
Select the uploaded script from the Script Name field.
In the Script Arguments field provide the store app's package ID obtained as shown in the Prerequisite.
Exit codes confirm if the script has been executed successfully. By default, it is 0.
If you select Enable Logging for Troubleshooting, the executed script output will be logged and it will be displayed in the Remarks section under