-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFix-WindowsStore.ps1
More file actions
20 lines (18 loc) · 859 Bytes
/
Fix-WindowsStore.ps1
File metadata and controls
20 lines (18 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#Requires -RunAsAdministrator
# Windows Store Fixer - Re-registers Windows Store and launches reset
# Based on the working manual fix from AlexRabbit/Windows-Store-Fixer
$ErrorActionPreference = 'Stop'
Write-Host "Windows Store Fixer" -ForegroundColor Cyan
Write-Host "==================" -ForegroundColor Cyan
try {
Write-Host "Re-registering Windows Store..." -ForegroundColor Yellow
Get-AppXPackage *WindowsStore* -AllUsers | ForEach-Object {
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"
}
Write-Host "Done. Launching Store reset (WSReset)..." -ForegroundColor Green
Start-Process WSReset.exe
Write-Host "Store should open and reset. You can close this window." -ForegroundColor Green
} catch {
Write-Host "Error: $_" -ForegroundColor Red
exit 1
}