There are several methods to activate Windows 7, each with its pros and cons:
If your computer is offline or the online activation fails, you can activate via telephone.