Assuming you're on Windows 10 or 11, the license is tied to the hardware, and (if you used one) to your Microsoft account. As [NAME] says, you shouldn't need to provide a key; in fact during installation you'll be prompted: ""If you're reinstalling Windows, select I don't have a product key. Your copy of Windows will be automatically activated later." If you want to ensure the system is activated, after installation go to Settings>System>Activation and "Activate Windows now".
Dell Hello, I have a dell OptiPlex 3060. The HD is faulty and I want to replace it. How do I transfer/add the existing windows license to a new HD? Is there an image file for this machine that I could restore to the new drive?
Dell OptiPlex restore to new HD