Microsoft Office 365 is a powerful suite of productivity tools widely used by individuals and businesses alike. While it usually requires a valid license or subscription for full functionality, there is a legitimate and safe way to activate Microsoft Office 365 for free without resorting to illegal methods or potentially harmful third-party programs. In this guide, we will walk you through the steps to activate Microsoft Office 365 using the Microsoft Deployment Tool and some simple command-line instructions directly from Microsoft.

Step 1: Download the Microsoft Deployment Tool

The first step is to download the Microsoft Deployment Tool from the official Microsoft website. You can download the Microsoft Deployment Tool from the official Microsoft website by visiting this link. Once the download is complete, proceed to the next step.

Step 2: Extract the Files

After downloading the Microsoft Deployment Tool, locate the downloaded file, typically named “officeddeploymenttool.exe,” and double-click on it. The tool will prompt you to choose an extraction location for the files. Select a suitable folder on your computer to proceed with the extraction.

Step 3: Open Terminal in the Extraction Folder

Now that you have extracted the Office Deployment Tool files, navigate to the folder where the files were extracted. Hold the ‘Shift’ key on your keyboard and right-click simultaneously within the folder. From the context menu that appears, click on “Open in Terminal” or “Open in Command Prompt,” depending on your operating system.

Step 4: Execute the Installation Command

In the terminal or command prompt, paste the following command:

.\setup.exe /configure .\configuration-Office2021Enterprise.xml

Press ‘Enter’ to execute the command and initiate the installation process. Wait for the installation to complete.

Step 5: Create and Run the Activation Script

Once the installation is finished, create a new text document and paste the following command into it:

@echo off
title Activate Microsoft Office 2021 (ALL versions) for FREE - =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2021&echo - Microsoft Office Professional Plus 2021&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo =====================================================================================&echo Activating your product...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo ospp.vbs /setprt:1688 >nul&cscript //nologo ospp.vbs /unpkey:6F7TH >nul&set i=1&cscript //nologo ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH >nul||goto notsupported
if %i% GTR 10 goto busy
if %i% EQU 1 set
if %i% EQU 2 set
if %i% EQU 3 set
if %i% GTR 3 goto ato
cscript //nologo ospp.vbs /sethst:%KMS% >nul
echo =====================================================================================&echo.&echo.&cscript //nologo ospp.vbs /act | find /i "successful" && (echo.&echo =====================================================================================&echo.&echo #My official blog: #How it works: #Please feel free to contact me at if you have any questions or concerns.&echo.&echo #Please consider supporting this project: #Your support is helping me keep my servers running 24/7!&echo.&echo =====================================================================================&choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit) || (echo The connection to my KMS server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto skms)
explorer ""&goto halt
echo =====================================================================================&echo.&echo Sorry, your version is not supported.&echo.&goto halt
echo =====================================================================================&echo.&echo Sorry, the server is busy and can't respond to your request. Please try again.&echo.
pause >nul

Save the text document with the name “activate.cmd” (make sure the file extension is “.cmd”).

Step 6: Run the Activation Script

Double-click on the “activate.cmd” file you just created. The script will execute the activation process for Microsoft Office 365. Please be patient as the activation may take a few moments to complete.


Congratulations! You have successfully activated Microsoft Office 365 for free using the official Microsoft Deployment Tool and a safe activation script. Your Office 365 suite is now ready for full use, and you can enjoy all the features and benefits of this powerful productivity suite without the need for an activation key or any potentially harmful third-party programs. Always remember to use legitimate methods to activate software and avoid illegal or unauthorized means. Happy productivity with Microsoft Office 365!

Now, go ahead and explore the vast capabilities of Microsoft Office 365 in your personal and professional endeavors!


Will this method work for all versions of Microsoft Office 365?
This method is specifically designed to work with Microsoft Office Standard 2021 and Microsoft Office Professional Plus 2021. It may not be compatible with older or future versions of Office. Always check the compatibility before proceeding.

Do I need an internet connection for the activation process?
Yes, an internet connection is required during the activation process. The activation script connects to a Key Management Service (KMS) server to activate Office 365. Ensure that your computer has access to the internet for successful activation.

Can I use this method on multiple computers?
The activation process may work on multiple computers, but it’s essential to understand the licensing terms for Microsoft Office. Each computer should have a valid license or subscription to use Office legally. Activating multiple computers with a single license may violate Microsoft’s terms and conditions.

Can I trust the source of the activation script?
The activation script mentioned in the article is from, which is a reputable website known for providing legitimate activation methods for Microsoft products. Always exercise caution when downloading files from the internet and ensure that you get them from trusted sources.

Disclaimer: This article is for informational purposes only. Users are responsible for understanding and complying with Microsoft’s licensing terms and conditions. We do not endorse or promote the use of illegal software or any activities that violate copyright laws.

Categorized in: