How to activate windows

Open the following link and find a key for you version of windows:

Open cmd as Administrator and run the following:

slmgr.vbs /ipk key_for_your_windows
slmgr.vbs /skms
slmgr /ato

If you have an evaluation windows, you need to change it to retail one. This is how:

From an elevated command prompt, determine the current edition name with the command
DISM /online /Get-CurrentEdition.
Make note of the edition ID, an abbreviated form of the edition name. Then run
DISM /online /Set-Edition: /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
providing the edition ID and a retail product key. The server will restart

How to activate Microsoft Office

CD \Program Files\Microsoft Office\Office16 OR CD \Program Files (x86)\Microsoft Office\Office16
cscript ospp.vbs /
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
where 'xxxx' is a key for your office. Some examples for office 2016 -
cscript ospp.vbs /act

If you messed up activation settings reset them using
slmgr /upk
slmgr /cpky
slmgr /rearm

Buy me a beer :P