As Windows 7 is no longer supported, it is vulnerable to modern malware and security exploits.
The command to activate Windows 7 using the command prompt is: windows 7 activation cmd