Hi Matt Hoffman,
You can natively deploy standard Windows 11 Pro retail licenses for your VirtualBox virtual machines without needing enterprise agreements or Azure infrastructure. Purchasing a retail license from the Microsoft store or an authorized vendor provides a 25-character product key granting full transfer rights. If a virtual machine corrupts, you can destroy it, build a new instance, and reuse the same key. Because VirtualBox assigns a new hardware UUID to the rebuilt machine, Windows may initially throw an activation error code like 0xC004C008, indicating the key is already in use. You can easily resolve this by running the built-in Windows Activation Troubleshooter and selecting the hardware change option to release the license from the defunct machine and reassign it to the new one.
To provision these virtual machines using strictly a local account and circumvent any OneDrive synchronization policies, you can utilize a native offline deployment script. When you reach the network connection screen during the initial Windows setup, press the Shift and F10 keys to open the Command Prompt and type the exact file path C:\Windows\System32\oobe\BypassNRO.cmd. Executing this script automatically modifies the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE by adding a bypass value and reboots the system. This natively forces the setup process to display an option to proceed without an internet connection, allowing you to create a traditional local administrator profile.
If you absolutely must attach a Microsoft account temporarily to activate a digital license, you can still protect your local environment. During the setup, simply decline all prompts offering to restore data or back up your folders to OneDrive. Once you reach the desktop environment and verify activation, navigate to the Accounts section within the Windows Settings application and switch your profile to a local account. This completely severs the telemetry and synchronization ties to the Microsoft account, ensuring your virtual machine remains an isolated workstation.
Domic V.