Question: how to remove wga using cmd?
Answer: Open the Start Menu.
Search for “cmd”.
Right-click on the search result named cmd and click on Run as administrator. ... 
Type the following command-line into the elevated Command Prompt and press Enter: slmgr -rearm.
You will see a confirmation window.