Setting up a Windows PC for C++ work usually starts with questions that have nothing to do with code: which Windows build is this, which compiler toolset will an old project ask for, and is this copy of Windows actually activated? Here are the checks worth running, in order, with the commands to copy.
1. Which Windows am I on?
Press Win + R, type winver and press Enter. The About box shows the version, OS build and edition. If you need it as text for a ticket or a support chat, run systeminfo in Command Prompt or Get-ComputerInfo in PowerShell. A build of 22000 or higher means Windows 11; below 20000 is Windows 10. The other methods, including msinfo32 when you also need the BIOS mode, are in this guide to finding your Windows version.
2. One compiler, three version numbers
MSVC confuses people because a single install carries three numbers:
- the platform toolset a
.vcxprojstores, such as v143 or v145; - the MSVC Build Tools version, such as 14.44 or 14.52, which is also the folder name under
VC\Tools\MSVC; - the
_MSC_VERvalue your code sees, such as 1944 or 1952.
The mapping worth keeping at hand:
| Visual Studio | Toolset | Build Tools | _MSC_VER |
|---|---|---|---|
| 2015 | v140 | 14.0 | 1900 |
| 2017 | v141 | 14.10 to 14.16 | 1910 to 1916 |
| 2019 | v142 | 14.20 to 14.29 | 1920 to 1929 |
| 2022 | v143 | 14.30 to 14.44 | 1930 to 1944 |
| 2026 | v145 | 14.50, 14.51, 14.52 | 1950, 1951, 1952 |
Since Visual Studio 2026 the MSVC version no longer follows the IDE version, so the compiler number can stay the same across several IDE updates, and the installer offers a preview toolset, the current one and older ones side by side. To see what you actually have, run cl in a Developer Command Prompt or open Microsoft.VCToolsVersion.default.txt. The full table and what changed in each toolset are in this C++ build tools version explainer.
3. Is Windows activated, and how?
Settings, System, Activation answers yes or no. The command line tells you what sits behind the word "activated":
slmgr /xpr :: permanent, or is there an end date? slmgr /dli :: edition, channel, last five characters of the key slmgr /dlv :: more detail, including the edition ID Plain slmgr answers in pop-up windows. Run it as cscript //nologo C:\Windows\System32\slmgr.vbs /dli and the answer stays in the console, where you can copy it. This activation status walkthrough explains each status message Settings can show, and the slmgr command reference sorts the switches by task.
4. "Access denied" is not a licensing problem
If an slmgr line fails with 0x80070005, the key is fine: the window simply was not elevated. Close it, open Command Prompt with Run as administrator and repeat the line (more on 0x80070005). On a work PC that means asking IT.
Other codes mostly start with 0xC004 or 0x8007. The first group comes from the licensing service itself (key, edition, license store); the second wraps a general Windows error, often network or permissions, that the activation step ran into. That split tells you whether to look at the key or at DNS and the connection. If you would rather paste than search, this activation error code lookup covers 77 codes.
5. Test the peripherals before you trust them
Last step on a new desk: a keyboard tester for dead keys, a polling-rate test for the mouse and a dead-pixel test for the monitor. They all run in the browser; a set of them is on this free PC tools page.
Most of these checks take under a minute each, and they answer the questions that otherwise come back in the middle of a build.
