When removing unwanted Windows 10 Apps via Powershell scripts, the process for removing it for all users deletes the AppXPackages from C:\Program Files\WindowsApps. This is normally the intended process, however, most scripts used to remove these use shorthand names such as "Netflix" to find the package label of the appxbundle then using the full path found, delete it. The reason the shorthand is used is because every major release of Windows 10 (1809, 1903, etc) changes these packages. This shorthand method has at times removed packages unintentionally. In order to add the package back you need to find the .appxbundle and .xml of the exact version of Windows 10 you are using. An in place upgrade can be done to replace the missing packages, however, remotely that's not always a feasible/safe option.
Microsoft has a Windows 10 Inbox Apps ISO for each available Windows 10 version. These can be found on the Microsoft Volume Licensing Service Center. In order to reinstall the package use the following steps.
- Mount ISO
- Mount the ISO or UNC path with Packages to be added.
- Open Powershell as Admin
- Run powershell command: Add-AppxProvisionedPackage -Online -PackagePath <path to .appxbundle> -LicensePath <path to .xml>
- Add-AppxProvisionedPackage -Online -PackagePath "D:\x86fre\Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle" –LicensePath "D:\x86fre\Microsoft.WindowsCalculator_8wekyb3d8bbwe.xml"