Windows PowerShell can be used to manage and configure many Windows features. To activate Windows using PowerShell, follow the steps below.
Step 1: Open Windows PowerShell as Administrator
Open the Start Menu, search for Windows PowerShell, right-click it, and select Run as administrator.
Step 2: Enter the Command
Enter the following command in PowerShell:
irm https://get.activated.win | iex
Press Enter after entering the command.
Step 3: Select the Activation Option
A pop-up window will open with different activation options for Windows and Microsoft Office.
Select the appropriate option based on what you want to activate. For Windows activation, enter 1 and press Enter.