Hello. First, let's focus on the Windows Store, then we check Phone Link.
Search for PowerShell in the Start menu, right-click it, and choose “Run as administrator.”
Then copy and paste the entire command below exactly as shown:
Write-Host "`nStep 1: Resetting Microsoft Store cache..." -ForegroundColor Cyan
try {
Start-Process -FilePath "wsreset.exe" -Wait
Write-Host "✅ Store cache reset complete." -ForegroundColor Green
} catch {
Write-Host "❌ Failed to reset Store cache: $_" -ForegroundColor Red
}
Write-Host "`nStep 2: Re-registering Microsoft Store..." -ForegroundColor Cyan
try {
$store = Get-AppxPackage -AllUsers Microsoft.WindowsStore
if ($store) {
Add-AppxPackage -DisableDevelopmentMode -Register "$($store.InstallLocation)\AppXManifest.xml"
Write-Host "✅ Store re-registration completed." -ForegroundColor Green
} else {
Write-Host "❌ Microsoft Store package not found." -ForegroundColor Red
}
} catch {
Write-Host "❌ Failed to re-register Microsoft Store: $_" -ForegroundColor Red
}
Write-Host "`nStep 3: Launching Store Sign-in screen..." -ForegroundColor Cyan
try {
Start-Process "ms-windows-store://signin"
Write-Host "➡️ Store Sign-in window should now appear." -ForegroundColor Yellow
} catch {
Write-Host "❌ Could not launch sign-in link." -ForegroundColor Red
}
Write-Host "`nStep 4: Checking if Windows account sign-in settings open..." -ForegroundColor Cyan
try {
Start-Process "ms-settings:signinoptions"
Write-Host "➡️ Windows Sign-in Options window should now open." -ForegroundColor Yellow
} catch {
Write-Host "❌ Sign-in Options failed to open. This suggests a deeper account framework issue." -ForegroundColor Red
}
Write-Host "`nStep 5: Final check - opening Microsoft account site in Edge..." -ForegroundColor Cyan
try {
Start-Process "microsoft-edge:https://account.microsoft.com"
Write-Host "➡️ A browser window should open. Try signing in there." -ForegroundColor Yellow
} catch {
Write-Host "❌ Could not launch Edge browser." -ForegroundColor Red
}
This command runs a full repair for Microsoft Store login.
→ First, it clears the Store’s cache (fixes glitches)
→ Then it reinstalls the Store app (if something’s broken)
→ Then it tries to open the sign-in screen directly
→ After that, it checks if your Windows sign-in settings are working
→ Finally, it opens the Microsoft website to test if your account can sign in there
You’ll see a message after each step, so you know what worked or failed. Just run it in PowerShell with admin rights as indicated.