To activate Windows legally, you need to purchase a valid product key from Microsoft or an authorized retailer. After obtaining a product key, you can enter it during the installation process or in the system settings under “Activation.” Legal activation not only provides access to all the features of Windows but also ensures you receive regular updates and security patches, which help keep your system safe and optimized.