My Windows 10 system with PowerShell 5.1 has this registry key:
HKLM/Software/Microsoft/PowerShell/3/PowerShellEngine
PSCompatibleVersion REG_SZ "1.0, 2.0, 3.0, 4.0, 5.0, 5.1"
It also has the PowerShell/1/ registry entries.
Is PowerShell 7.2 also compatible all the way back, and will it also have the older registry entries? I've searched all over without finding this information and don't have access to a system to test on.
https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4 talks about places where backwards compatibility breaks in PS 7.4 but doesn't appear to address my question about the registry keys.
Adding based on a comment: the motivation is a software package whose installer apparently checks for the existence of the 2.x PowerShell registry key. It's not yet known whether the package actually requires PowerShell 5.x or lower to operate, as 7.x is mostly compatible with 5.1 ; it's not my system and I don't have direct access to it, nor can I easily build a test system with only PowerShell 7.
If PowerShell 5.1 contains registry keys from PowerShell 1.0 and 2.0, it didn't seem unreasonable to ask if the mostly-backwards-compatible later versions also do.