string winver = Registry::getString(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows NT\CurrentVersion", "ProductName", "Windows Server 2019 Standard"); if (winver == "Windows Server 2019 Standard") {