实测适用于WINDOWS 11 10 8 7
在PowerShell中输入以安装

irm https://get.activated.win | iex

Source
https://github.com/massgravel/Microsoft-Activation-Scripts
Maybe you can download this file run,If you need offline use.