G
Goldi GraceLara
Reinstall preinstalled apps in Windows 10
Step1:
Copy the script below in notepad and save this as “reinstall-preinstalledApps.ps1” and save it on desktop.
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else
{
$Packages = $Packages | where {$_.Name -like $PackageFilter}
if ($Packages -eq $null)
{
echo "No provisioned apps match the specified filter."
exit
}
else
{
echo "Registering the provisioned apps that match $PackageFilter"
}
}
ForEach($Package in $Packages)
{
# get package name & path
$PackageName = $Package | Get-ItemProperty | Select-Object -ExpandProperty PSChildName
$PackagePath = [System.Environment]::ExpandEnvironmentVariables(($Package | Get-ItemProperty | Select-Object -ExpandProperty Path))
# register the package
echo "Attempting to register package: $PackageName"
Add-AppxPackage -register $PackagePath -DisableDevelopmentMode
}
Step2:
◘ Next open an admin Windows Powershell, enter the following command and hit Enter:
CD C:\Users\username\Desktop
Remember to replace username with problematic user profile name.
◘ Now enter this command and hit Enter:
Set-ExecutionPolicy Unrestricted
This will temporarily allow unsigned PowerShell scripts to execute.
◘ Now type the following command and hit Enter:
.\reinstall-preinstalledApp.ps1
This will execute the script and all your default preinstalled Store apps will get reinstalled.
If you try to install an app that is already installed, it will be skipped without an error.
Now check if the app has been reinstalled and can be launched.
◘ Once you have done the job, re-enable enforcement for signed PowerShell scripts by typing executing the following command:
Set-ExecutionPolicy AllSigned
Windows Store app missing in Windows 10
Fix Error “ms-windows-storeurgeCaches”
1. Create a powershell command. Open notepad and copy the script above and save as reinstall-preinstalledApps.ps1 on desktop.
C:\Users\username\Desktop
2. Open Windows Powershell and run it as administrator and enter the command below:
Set-ExecutionPolicy Unrestricted
If it asks you to change the execution policy, press Y and hit Enter.
3. After typing Set-ExecutionPolicy Unrestricted enter the following command now:
cd C:\Users\YourUserName\Desktop
This will run the powershell script created on step 1. Make sure to replace “username” in the command with your actual Windows account username.
4. After entering cd C:\Users\YourUserName\Desktop. Enter the next command below.
.\reinstall-preinstalledApps.ps1 *Microsoft.WindowsStore*
5. Check if you can find or open Windows Store app by searching it using Cortana.
6. If Store App is now working re-enable enforcement for signed PowerShell scripts by entering the Set-ExecutionPolicy AllSigned
Then close Windows Powershell. If Windows Store app still not working try to reinstall it using command below.
Reinstall Windows 10 Store
Open Windows Powershell and Run it as administrator and enter the command below.
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Continue reading...
Step1:
Copy the script below in notepad and save this as “reinstall-preinstalledApps.ps1” and save it on desktop.
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else
{
$Packages = $Packages | where {$_.Name -like $PackageFilter}
if ($Packages -eq $null)
{
echo "No provisioned apps match the specified filter."
exit
}
else
{
echo "Registering the provisioned apps that match $PackageFilter"
}
}
ForEach($Package in $Packages)
{
# get package name & path
$PackageName = $Package | Get-ItemProperty | Select-Object -ExpandProperty PSChildName
$PackagePath = [System.Environment]::ExpandEnvironmentVariables(($Package | Get-ItemProperty | Select-Object -ExpandProperty Path))
# register the package
echo "Attempting to register package: $PackageName"
Add-AppxPackage -register $PackagePath -DisableDevelopmentMode
}
Step2:
◘ Next open an admin Windows Powershell, enter the following command and hit Enter:
CD C:\Users\username\Desktop
Remember to replace username with problematic user profile name.
◘ Now enter this command and hit Enter:
Set-ExecutionPolicy Unrestricted
This will temporarily allow unsigned PowerShell scripts to execute.
◘ Now type the following command and hit Enter:
.\reinstall-preinstalledApp.ps1
This will execute the script and all your default preinstalled Store apps will get reinstalled.
If you try to install an app that is already installed, it will be skipped without an error.
Now check if the app has been reinstalled and can be launched.
◘ Once you have done the job, re-enable enforcement for signed PowerShell scripts by typing executing the following command:
Set-ExecutionPolicy AllSigned
Windows Store app missing in Windows 10
Fix Error “ms-windows-storeurgeCaches”
1. Create a powershell command. Open notepad and copy the script above and save as reinstall-preinstalledApps.ps1 on desktop.
C:\Users\username\Desktop
2. Open Windows Powershell and run it as administrator and enter the command below:
Set-ExecutionPolicy Unrestricted
If it asks you to change the execution policy, press Y and hit Enter.
3. After typing Set-ExecutionPolicy Unrestricted enter the following command now:
cd C:\Users\YourUserName\Desktop
This will run the powershell script created on step 1. Make sure to replace “username” in the command with your actual Windows account username.
4. After entering cd C:\Users\YourUserName\Desktop. Enter the next command below.
.\reinstall-preinstalledApps.ps1 *Microsoft.WindowsStore*
5. Check if you can find or open Windows Store app by searching it using Cortana.
6. If Store App is now working re-enable enforcement for signed PowerShell scripts by entering the Set-ExecutionPolicy AllSigned
Then close Windows Powershell. If Windows Store app still not working try to reinstall it using command below.
Reinstall Windows 10 Store
Open Windows Powershell and Run it as administrator and enter the command below.
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Continue reading...