Welcome to Microsoft Q&A!
Thank you for clarifying the requirement.
Based on Microsoft’s published documentation, the key distinction here is between running Windows Server 2022 Standard Evaluation during its evaluation period and activating a fully licensed Windows Server installation.
Windows Server 2022 Standard Evaluation is a time-limited evaluation SKU intended for evaluation and testing. Microsoft’s documented path for moving from an Evaluation installation to a permanently licensed installation is to convert the Evaluation edition to an eligible retail/licensed edition using a valid product key.
Therefore, to answer your specific question directly:
There is no documented Microsoft method to permanently activate Windows Server 2022 Standard Evaluation itself, offline or otherwise, without obtaining an appropriate license.
The fact that the VM is disconnected from the Internet does not change the licensing state of the Evaluation edition. Offline activation mechanisms apply when there is an appropriate license and activation method available for the licensed product. They do not convert the Evaluation SKU into a permanently licensed installation without a license.
For your temporary development/testing scenario**,** if the applicable Windows Server Evaluation period is sufficient for your compiler-testing requirement, you can continue using the Evaluation installation within that evaluation period. You do not need to purchase Windows Server merely to convert the installation while your use remains within the applicable evaluation terms.
You can verify that the VM is still running the Evaluation edition from an elevated Command Prompt or PowerShell session:
DISM /online /Get-CurrentEdition
You can also review its detailed licensing state with:
slmgr.vbs /dlv
For an Evaluation installation, Microsoft documents that the current edition contains Eval, or the detailed licensing information shows EVAL.
If you need to continue using this Windows Server installation beyond the applicable evaluation period, the documented path is to obtain appropriate licensing and convert the Evaluation installation to a supported licensed edition, where applicable, or perform a new installation if the required conversion path is not supported.
About the least expensive licensing option, I understand that you would also like Microsoft to identify the least expensive compliant option for this one development VM.
This is where I would recommend obtaining a licensing determination specific to your environment rather than relying on a Microsoft Q&A response.
Windows Server licensing cannot reliably be determined only from the fact that there is one VM hosted by Hyper-V on a Windows client laptop. The applicable rights can depend on the licensing program, physical host, virtualization rights, existing licenses or subscriptions, users/devices accessing the server, and the specific Microsoft Product Terms applicable to your organization.
Development and test rights may also be available through certain Visual Studio subscriptions, but the products and use rights available depend on the particular subscription. Therefore, it would not be appropriate to state that purchasing Windows Server Standard, or purchasing any particular Visual Studio subscription, is definitively the least expensive compliant option without reviewing your actual licensing situation.
Moreover, I appreciate that you are looking for an authoritative confirmation rather than another general licensing explanation.
Microsoft Q&A is primarily a public community technical-support forum. I can help interpret Microsoft's published documentation, explain documented Windows Server behavior and supported procedures and help you verify the technical state of the installation.
However, a forum response cannot inspect your organization's licensing agreements or Product Terms applicable to your purchase, determine contractual licensing rights for your particular environment, provide an official licensing quotation, or make a binding licensing/compliance determination on Microsoft's behalf.
Similarly, where the published documentation does not explicitly document a particular licensing exception or activation scenario, I would not want to infer one and present that interpretation as an official Microsoft licensing statement. Doing so could give you incorrect guidance for your specific environment.
I realize that this may not provide the exact pricing or licensing confirmation you were hoping to receive here. However, I would rather be transparent about the boundary of what can be established from Microsoft's published documentation than give you a licensing recommendation that may not apply to your organization.
Furthermore, for the VM itself, first use DISM /online /Get-CurrentEdition and slmgr.vbs /dlv to confirm that it is still an Evaluation installation and review the reported evaluation/licensing state.
If your testing must continue beyond the applicable evaluation period, or if you require a formal determination of the lowest-cost compliant licensing option, please open a Microsoft licensing/support request or contact an authorized Microsoft licensing partner. Provide them with the fact that this is one Windows Server 2022 VM, hosted on a Windows client Hyper-V laptop, completely network-isolated, and used only for temporary software-development/compiler testing. Also mention any existing Visual Studio subscriptions or Microsoft volume-licensing agreements.
That channel is more appropriate for reviewing your specific entitlements and providing an authoritative licensing and purchasing recommendation.
References: Convert Windows Server editions and license types | Microsoft Learn
Microsoft Windows Server | Microsoft Licensing Resources
Visual Studio Licensing Guidance
If you find it useful, please click Accept Answer.
Thank you for choosing Microsoft Q&A.