2026年3月17日火曜日

Fixing Microsoft Store Error 0x800704CF

  Complete Fix Guide: Microsoft Store Error 0x800704CF


  ---

  Step 1 — Reset Microsoft Store Cache


  wsreset.exe

  This clears the Store cache and relaunches it automatically.


  ---

  Step 2 — Reset TCP/IP Network Stack


  Run these in PowerShell or Command Prompt:


  # Flush DNS cache

  Clear-DnsClientCache


  # Reset Winsock (requires restart)

  netsh winsock reset


  # Reset TCP/IP stack (requires restart)

  netsh int ip reset


  ---

  Step 3 — Fix Critical: Start & Enable ClipSVC


  This is the main fix. ClipSVC (Client License Service) must be running for the Store to work.


  # Start the service

  Start-Service -Name "ClipSVC"


  # Set to Automatic startup via registry (works without admin elevation issues)

  reg add "HKLM\SYSTEM\CurrentControlSet\Services\ClipSVC" /v Start /t REG_DWORD /d 2 /f


  Verify it's running:

  Get-Service ClipSVC | Select-Object Name, Status, StartType


  ---

  Step 4 — Re-register Microsoft Store App


  # Reset the app

  Get-AppxPackage Microsoft.WindowsStore | Reset-AppxPackage


  # Re-register the app

  $pkg = Get-AppxPackage -AllUsers -Name "Microsoft.WindowsStore"

  $manifest = Join-Path $pkg.InstallLocation "AppXManifest.xml"

  Add-AppxPackage -DisableDevelopmentMode -Register $manifest


  ---

  Step 5 — Fix Microsoft Account Sign-In (WAM Reset)


  # Stop sign-in service

  Stop-Service -Name "wlidsvc" -Force


  # Clear identity store cache (if it exists)

  $identityPath = "HKCU:\Software\Microsoft\IdentityStore"

  if (Test-Path $identityPath) {

      Get-ChildItem "$identityPath\Cache" -ErrorAction SilentlyContinue | Remove-Item -Recurse -Force

  }


  # Restart sign-in service

  Start-Service -Name "wlidsvc"


  Then add your Microsoft account through:

  ▎ Settings → Accounts → Email & accounts → Add a Microsoft account


  ---

  Step 6 — Restart


  Restart your PC to apply the Winsock and TCP/IP resets from Step 2.


  ---

  Root Causes Found


  ┌──────────────────────────────┬────────────────────────────────────────────────────┐

  │            Cause             │                        Fix                         │

  ├──────────────────────────────┼────────────────────────────────────────────────────┤

  │ ClipSVC was stopped/disabled │ Started service + set to Automatic (Step 3)        │

  ├──────────────────────────────┼────────────────────────────────────────────────────┤

  │ Corrupted Store cache        │ wsreset + app re-registration (Steps 1, 4)         │

  ├──────────────────────────────┼────────────────────────────────────────────────────┤

  │ Stale WAM auth tokens        │ Cleared identity cache + re-added account (Step 5) │

  ├──────────────────────────────┼────────────────────────────────────────────────────┤

  │ Network stack issues         │ Winsock + TCP/IP reset (Step 2)                    │

  └──────────────────────────────┴────────────────────────────────────────────────────┘


  ---

  Quick One-Shot Script


  Save this as fix-store.ps1 and run as Administrator to apply all fixes at once:


  Write-Host "=== Fixing Microsoft Store Error 0x800704CF ===" -ForegroundColor Cyan


  # 1. Reset Store cache

  Write-Host "[1] Resetting Store cache..."

  Start-Process wsreset.exe -Wait


  # 2. Reset network

  Write-Host "[2] Resetting network stack..."

  Clear-DnsClientCache

  netsh winsock reset | Out-Null

  netsh int ip reset | Out-Null


  # 3. Fix ClipSVC

  Write-Host "[3] Fixing ClipSVC..."

  reg add "HKLM\SYSTEM\CurrentControlSet\Services\ClipSVC" /v Start /t REG_DWORD /d 2 /f | Out-Null

  Start-Service -Name "ClipSVC" -ErrorAction SilentlyContinue

  Write-Host "    ClipSVC: $((Get-Service ClipSVC).Status)"


  # 4. Re-register Store

  Write-Host "[4] Re-registering Microsoft Store..."

  Get-AppxPackage Microsoft.WindowsStore | Reset-AppxPackage

  $pkg = Get-AppxPackage -AllUsers -Name "Microsoft.WindowsStore"

  Add-AppxPackage -DisableDevelopmentMode -Register (Join-Path $pkg.InstallLocation "AppXManifest.xml")


  # 5. Reset WAM

  Write-Host "[5] Resetting sign-in service..."

  Stop-Service -Name "wlidsvc" -Force -ErrorAction SilentlyContinue

  Start-Sleep -Seconds 2

  Start-Service -Name "wlidsvc" -ErrorAction SilentlyContinue


  Write-Host ""

  Write-Host "=== Done! Please restart your PC ===" -ForegroundColor Green

  Write-Host "After restart: Settings > Accounts > Email & accounts > Add Microsoft account"

  

  

  

0 件のコメント:

コメントを投稿