Several issues can prevent successful rearm execution. Here's how to diagnose and resolve the most common problems.
Issue 1: Rearm command fails with network error
The rearm command requires internet connectivity to validate with Microsoft's servers. Test your connection:
# Test internet connectivity
Test-NetConnection -ComputerName microsoft.com -Port 80
# Check DNS resolution
nslookup microsoft.com
If connectivity fails, resolve network issues before attempting rearm again.
Issue 2: "Access denied" or permission errors
Ensure you're running PowerShell or Command Prompt as Administrator:
# Check if running as admin
([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
If this returns False, restart your command prompt as Administrator.
Issue 3: Rearm count shows 0 remaining
You've exhausted all rearm cycles. Check conversion options:
# Check current edition
DISM /online /Get-CurrentEdition
# List available target editions
DISM /online /Get-TargetEditions
You can convert to a licensed version using DISM with a valid product key:
DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
Warning: Domain Controllers require special handling for edition conversion. Consult Microsoft documentation before converting DC evaluation editions.
Issue 4: System still shows expiration warnings after rearm
Force a license refresh:
# Refresh license status
slmgr /ato
# Clear license cache
slmgr /cpky
Verification: After troubleshooting, run slmgr -dlv to confirm the issue is resolved and the evaluation period is properly extended.