Reinstalling preinstalled apps
To reinstall preinstalled apps
- Download the Reinstall-preinstalledApps.zip PowerShell Script to your PC and copy it to your desktop.
- Open an elevated PowerShell window.
- Click Start.
- Type "Windows PowerShell" in the search bar.
- Right-click Windows PowerShell in the results list and click "Run as administrator".
- A User Account Control dialog displays. Click "yes" to proceed.
- Navigate to the script download folder, which is your desktop if you followed step 1. Your command will look similar to the following example.
PS C:\Users\Abby>CD Desktop
- Temporarily allow unsigned PowerShell scripts to execute. Your command will look similar to the following example.
PS C:\Users\Abby\Desktop>Set-ExecutionPolicy Unrestricted
- Execute the script. You can install a specific app (like the Windows Store) or all preinstalled apps.
If you try to install an app that is already installed, it will be skipped without an error.
Reinstall a specific app
- Add a string argument to the powershell command that represents the string containing the name of the app. In our example of the Windows Store, the string is *Microsoft.WindowsStore* (asterisks included). Your command will look similar to the following example.
PS C:\Users\Abby\Desktop>.\reinstall-preinstalledApp.ps1 *Microsoft.WindowsStore*
The system will prompt for approval to execute the script. Typing “y” will allow the script to continue.
Reinstall all preinstalled apps
- Execute the script without any arguments. Your command will look similar to the following example.
PS C:\Users\Abby\Desktop>.\reinstall-preinstalledApp.ps1
- Add a string argument to the powershell command that represents the string containing the name of the app. In our example of the Windows Store, the string is *Microsoft.WindowsStore* (asterisks included). Your command will look similar to the following example.
- Re-enable enforcement for signed PowerShell scripts. Your command will look similar to the following example.
PS C:\Users\Abby>Set-ExecutionPolicy AllSigned
- Your preinstalled app or apps should now be installed and visible on the apps list.
Testing the script
If everything succeeds, the single app (or all preinstalled apps) should now be available to launch in the apps list.