How to Reinstall Windows Store With Powershell.
Solution 1 Copy and paste the following text:
Get-AppXPackage -AllUsers -Name Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" -Verbose}
Solution 2 Copy and paste the following text:
# 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
}
Works on Laptops and PCs made by Samsung, Lenovo, Toshiba, Asus, Acer, HP, Dell, Alienware.
Watch video Reinstall Microsoft Store Via PowerShell [2024] online without registration, duration 02 minute 52 second in high hd quality. This video was added by user TechFixIT 19 March 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6 thousand once and liked it 4 people.