A PowerShell script to completely remove and reinstall Claude Desktop, fixing Cowork virtualization issues.
This script performs a complete clean reinstall of Claude Desktop with special attention to fixing the Cowork feature's virtualization requirements.
- β Enables virtualization - Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform
- β Stops/removes CoworkVMService - Cleans up the Cowork service
- β Full uninstallation - Removes MSIX packages and registry entries
- β Deletes AppData - Cleans up all user data folders
- β Auto-downloads installer - Gets the latest Claude Desktop version
- β Runs installer - Launches the installer as Administrator
- β Color-coded output - Easy-to-read progress indicators
- Windows 10/11
- PowerShell 5.1 or higher
- Administrator privileges (script will fail without them)
# Download and run directly
irm https://raw.githubusercontent.com/kbaker827/claude-clean-reinstall/main/Reset-ClaudeDesktop.ps1 | iexOr download and run manually:
# 1. Download the script
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/kbaker827/claude-clean-reinstall/main/Reset-ClaudeDesktop.ps1" -OutFile "$env:TEMP\Reset-ClaudeDesktop.ps1"
# 2. Run as Administrator
Start-Process powershell.exe -ArgumentList "-ExecutionPolicy Bypass -File $env:TEMP\Reset-ClaudeDesktop.ps1" -Verb RunAs- Right-click PowerShell β Run as Administrator
- Navigate to the script folder:
cd C:\Path\To\Script
- Run the script:
.\Reset-ClaudeDesktop.ps1
Checks and enables required Windows features for Cowork:
- Microsoft-Hyper-V-All
- VirtualMachinePlatform
- HypervisorPlatform
β οΈ May require reboot if features were just enabled.
Stops and removes the CoworkVMService to prevent conflicts during reinstall.
Removes:
- MSIX packaged app
- Registry uninstaller entries
- Traditional installer remnants
Deletes these folders:
%APPDATA%\Claude
%LOCALAPPDATA%\Claude
%LOCALAPPDATA%\Packages\Claude_pzs8sxjxfjjc
Downloads the latest Claude Desktop installer from the official source:
https://storage.googleapis.com/osprey-downloads/.../Claude-Setup-x64.exe
Launches the installer with Administrator privileges and waits for completion.
>> Checking virtualization support...
[OK] Hyper-V: Already enabled
[OK] Virtual Machine Platform: Already enabled
[OK] Windows Hypervisor Platform: Already enabled
>> Stopping CoworkVMService...
[OK] CoworkVMService not found (already clean)
>> Uninstalling Claude Desktop...
[OK] No MSIX package found
>> Cleaning up AppData folders...
[OK] Not found (skip): C:\Users\...\AppData\Roaming\Claude
[OK] Deleted: C:\Users\...\AppData\Local\Claude
[OK] Not found (skip): C:\Users\...\AppData\Local\Packages\Claude_pzs8sxjxfjjc
>> Downloading latest Claude Desktop installer...
[OK] Downloaded to: C:\Users\...\AppData\Local\Temp\ClaudeSetup.exe
>> Running installer...
The installer window will open. Follow the prompts.
[OK] Installer completed
============================================================
Done! Launch Claude Desktop and check the Cowork tab.
If Cowork still fails, check Event Viewer:
Event Viewer > Windows Logs > Application
============================================================
You must run PowerShell as Administrator. Right-click PowerShell β "Run as Administrator"
Your IT department may have disabled virtualization features. Contact your IT admin to enable:
- Hyper-V
- Virtual Machine Platform
- Windows Hypervisor Platform
If the auto-download fails, the script will provide a manual download link:
- Go to https://claude.com/download
- Download and run the installer manually
- Check Event Viewer:
Event Viewer > Windows Logs > Application - Look for errors related to "CoworkVMService" or "Claude"
- Check Windows Features are enabled:
Get-WindowsOptionalFeature -Online | Where-Object { $_.FeatureName -like "*Hyper*" -or $_.FeatureName -like "*Virtual*" }
If the script keeps asking to reboot:
- Reboot your computer
- Run the script again
- The second run should complete without requiring another reboot
# Run as Administrator
dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /all /norestart
dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism /online /enable-feature /featurename:HypervisorPlatform /all /norestartThen reboot and re-run the script.
- Windows Settings β Apps β Installed Apps
- Find "Claude" β Uninstall
- Delete folders:
%APPDATA%\Claude %LOCALAPPDATA%\Claude %LOCALAPPDATA%\Packages\Claude_pzs8sxjxfjjc
- Windows 10 version 2004+ or Windows 11
- PowerShell 5.1 or PowerShell 7+
- Administrator privileges
- Internet connection (for downloading installer)
- β
Backs up nothing - but you can manually backup
%APPDATA%\Claudebefore running - β Non-destructive - Only removes Claude-related files
- β Reversible - You can always reinstall Claude normally
| File | Description |
|---|---|
Reset-ClaudeDesktop.ps1 |
Main PowerShell script |
README.md |
This documentation |
Found an issue or have an improvement? Open an issue or PR!
MIT License - Free to use and distribute.
- Repository: https://github.com/kbaker827/claude-clean-reinstall
- Claude Desktop: https://claude.com/download
- Anthropic Support: https://support.anthropic.com
Fix Claude Desktop and Cowork issues with one script! π