![How to Clear and Reset Microsoft Store Cache in Windows 10 [Tutorial]](https://ytimg.googleusercontent.com/vi/IUybxoN7VRc/hqdefault.jpg)
Works on laptops, PCs and tablets made by Samsung, Lenovo, Toshiba, Asus, Acer, HP, Dell, Alienware.
Copy and paste this:
# Get all provisioned packages
Packages (get-item 'HKLM://Software//Microsoft//Windows//CurrentVersion//Appx//AppxAllUserStore//Applications') Get-ChildItem
# Filter the list if a filter is provided
Package Filter Settings[0]
if ([string]::IsNullOrEmpty(PackageFilter))
{
echo /"No filter specified, attempting to re-register all provisioned applications./"
}
other
{
Packages Packages where {_.Name -like PackageFilter}
if (Packages -eq null)
{
echo /"No provisioned applications match the specified filter./"
exit
}
other
{
echo /"Saving provisioned applications that match PackageFilter/"
}
}
ForEach (Package in Packages)
{
# get package name and path
PackageName Package Get-ItemProperty Select-Object -ExpandProperty PSChildName
PackagePath[System.Environment]::ExpandEnvironmentVariables((Package Get-ItemProperty Select-Object -ExpandProperty Path))
# register the package
echo /"Attempt to save package: PackageName/"
Add-AppxPackage -register PackagePath -DisableDevelopmentMode
}
Please take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments