Troubleshooting scvmm 2012, 2019 and 2022.

Fast triage (10–15 minutes)

  1. Check services & console basics

  1. Event Viewer first look

  1. Rerun the failed job with debug trace ON (see section 1 below), then recheck the job’s Details and error code (e.g., 2606, 2912). Microsoft publishes per-code guidance. Microsoft Learn


Collect the right logs & traces (SCVMM 2012/2019/2022)

A. Setup / console / server logs

B. Turn on VMM debug tracing (ETW) – do this before reproducing the issue
On the VMM server (or the target host if the action runs there):

# Prep folder
New-Item -ItemType Directory -Path C:\VMMLogs -ErrorAction SilentlyContinue | Out-Null

# Reset any old collector
logman delete VMM 2>$null

# Create collector (Microsoft official recipe)
logman create trace VMM -o C:\VMMLogs\VMMLog.etl -p Microsoft-VirtualMachineManager-Debug -nb 10 250 -bs 16 -max 512 -ets
# Reproduce the problem, then stop:
logman stop VMM -ets

You can convert ETL to readable text with netsh trace convert. Microsoft Learn

C. Old 2012 storage service tracing (if relevant)
Some 2012/2012 R2 storage-mgmt issues require enabling that specific debug logging (KB 3037626). Microsoft Learn

D. Central Microsoft troubleshooting hub
Microsoft’s SCVMM troubleshooting portal indexes common scenarios and fixes; keep it handy. Microsoft Learn


SQL connectivity & permissions (very common)


WinRM / Agents / Host communications

Many Error (2912) and 20506 / 20552 families trace back to WinRM, permissions, or the VMM agent on the host. Checklist:


Library & shares (templates/ISOs not mounting, refresh storms)


Clusters / S2D / Hyper-V actions (add/refresh cluster, CSV, etc.)


Known good references by scenario


Suggested step-by-step flow (put this on your runbook)

  1. Scope & capture: Note the failing job ID and error code → turn on debug tracing → reproduce once. Microsoft Learn

  2. Logs: Pull %ProgramData%\VMMLogs\ and the new C:\VMMLogs\*.etl (convert with netsh trace convert). Microsoft Learn

  3. SQL quick checks: VMM service account exists, can connect, and is db_owner on VirtualManagerDB; SQL service/instance reachable. Microsoft Learn

  4. Host comms: Validate WinRM and VMM agent on affected hosts; fix 2912/20506-style issues; retry job. Microsoft Learn

  5. Library angle (if templates/ISOs/Profiles): run a manual Library refresh; confirm path/permissions; retry deployment. Microsoft Learn

  6. Cluster specifics: if cluster discovery/refresh fails, check nodes for WinRM/agent consistency; re-add with trace running to catch RPC/kerb details. Microsoft Learn

  7. Retry/repair: use Repair-SCVirtualMachine or rerun the job after clearing locks (2606). Microsoft Learn


Handy PowerShell one-liners


Tools you’ll use (and when)