Activate Office 365 via CMD

Last Updated on January 5, 2024 by SanaModi

Microsoft Office 365 is software that provides all the tools for writing, counting, make database, and also making presentations. This software is very popular, because it is very widely used by many people in the world. By using this software the daily work related to optimization will be able to be made quickly and efficiently.

There are many options for activating Microsoft Office 365. You can purchase it officially through Microsoft to get full access legally. But here you can also activate Microsoft Office 365 using Command Prompt (CMD). To activate Microsoft Office 365 via CMD, please follow the following guidelines.

How to Activate Microsoft Office 365 via CMD

1) Please open the Command Prompt (CMD) but run it as “Administrator“.
2) Please execute one of the following commands, depending on where your Microsoft Office 365 installation is located.

cd C:\Program Files (x86)\Microsoft Office\Office16


cd C:\Program Files\Microsoft Office\Office16

3) Convert your Microsoft Office 365 from Retail to Volume License.

for /f %x in ('dir /b ..\root\Licenses16\proplusvl_kms*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%x"

4) Then activate Microsoft Office 365 using the following command.

cscript ospp.vbs /inpkey:XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99
cscript ospp.vbs /unpkey:BTDRB >nul
cscript ospp.vbs /unpkey:KHGM9 >nul
cscript ospp.vbs /unpkey:CPQVG >nul
cscript ospp.vbs /
cscript ospp.vbs /setprt:1688
cscript ospp.vbs /act

Congratulations, you will successfully activate Microsoft Office 365 using Command Prompt (CMD). I hope this article can help you. If you need Microsoft Office 365 you can download it through this page.

38 thoughts on “Activate Office 365 via CMD”

  1. Hi guys,
    As an ex-IT student I am always cautious, keeping a keen eye for scams.
    Comments likes, even subscribes and comments are easy to generate.

    This method seemed clean enough for me to give it a try and yep, this works!
    If You are just like me and You are reading this comment You can be sure – this worth a try!

    This is activating 2016 Professional Plus thru’ CMD.
    Ofc this is not legal, ofc once Microsoft finds out how You got your it will deactivate it.
    I got mine deactivated after years, now I just got it back.
    Ez pz. Enjoy! 🙂

    And dear creator, who shared this with us, let me thank you in the name of many of us 🙂

  2. Hi Frank. Props to you man. I always have been doubtful for everything and I was hesitant in trying again something I wasn’t sure about, but I had this gut feeling. Tried it, and it works. Hats off to you bro. Thanks a ton. You are a lifesaver.


Leave a Comment