How do I permanently activate Office 2013 from command prompt?

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

@echo off
title Activate Microsoft Office 2013 Volume for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office 2013 Standard Volume&echo - Microsoft Office 2013 Professional Plus Volume&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office15\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office15")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office15\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office15")&echo.&echo ============================================================================&echo Activating your Office...&cscript //nologo ospp.vbs /unpkey:92CD4 >nul&cscript //nologo ospp.vbs /unpkey:GVGXT >nul&cscript //nologo ospp.vbs /inpkey:KBKQT-2NMXY-JJWGP-M62JB-92CD4 >nul&cscript //nologo ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT >nul&set i=1
:server
if %i%==1 set KMS_Sev=kms7.MSGuides.com
if %i%==2 set KMS_Sev=kms8.MSGuides.com
if %i%==3 set KMS_Sev=kms9.MSGuides.com
if %i%==4 goto notsupported
cscript //nologo ospp.vbs /sethst:%KMS_Sev% >nul&echo ============================================================================&echo.&echo.
cscript //nologo ospp.vbs /act | find /i "successful" && (echo.&echo ============================================================================&echo.&echo #My official blog: MSGuides.com&echo.&echo #How it works: bit.ly/kms-server&echo.&echo #Please feel free to contact me at msguides.com@gmail.com if you have any questions or concerns.&echo.&echo #Please consider supporting this project: donate.msguides.com&echo #Your support is helping me keep my servers running everyday!&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 server)
explorer "http://MSGuides.com"&goto halt
:notsupported
echo.&echo ============================================================================&echo Sorry! Your version is not supported.
:halt
pause >nul

As you know, I am working on a project that supports people to activate their Microsoft software products using KMS license key. Many of you guys might be wondering why I only write guideline about the latest version of Office 2016 or Office 365. Is it possible to activate the older versions for FREE? The answer is YES, this is very possible but there is a problem need to discuss with you in greater detail below.

Difference between Retail and Volume version

If you are using Office retail, you can not use KMS method because it only supports volume version. However, in fact, it’s so much easier to use KMS license now because users could convert retail version to volume using a license files library bundled with setup file since Office 2016. But it is unfortunate that this library is not available in earlier versions (including Office 2013/2010).

2 methods to activate your Office using KMS client setup key

1. The first method: Without using any additional library

How-to video

Supported products: Office 2013/2010 Volume editions.

First, you need to open command prompt with admin rights, then follow the instruction below step by step. Just copy/paste the commands and do not forget to hit Enter in order to execute them.

Step 1.1: Detect location of the Office installed on your PC.
The path depends on the architecture of the Windows OS you are using. If you are not sure what it is, don’t worry, just run all commands below.

if exist "%ProgramFiles%\Microsoft Office\Office15\ospp.vbs" set folder="%ProgramFiles%\Microsoft Office\Office15"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office15\ospp.vbs" set folder="%ProgramFiles(x86)%\Microsoft Office\Office15"
if exist "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" set folder="%ProgramFiles%\Microsoft Office\Office14"
if exist "%ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs" set folder="%ProgramFiles(x86)%\Microsoft Office\Office14"
How do I permanently activate Office 2013 from command prompt?
Open Office folder

Step 1.2: Activate your Office using KMS client key.
Make sure your PC is connected to the internet, then run the following command.

cscript %folder%\ospp.vbs /inpkey:VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
cscript %folder%\ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
cscript %folder%\ospp.vbs /sethst:kms8.msguides.com
cscript %folder%\ospp.vbs /setprt:1688
cscript %folder%\ospp.vbs /act

If you see the error 0xC004F074, it means that your internet connection is unstable or the server is busy. Please make sure your device is online and try the command “act” again until you succeed.

How do I permanently activate Office 2013 from command prompt?
Product activation successful

Supported products: All Office 2013/2010 editions.

Step 2.1: Download the license files library then extract it. Move the library folder to the C drive.

How do I permanently activate Office 2013 from command prompt?
Office additional library

Step 2.2: Follow first step of the method 1 above.

Step 2.3: Convert your retail license to volume one.

How do I permanently activate Office 2013 from command prompt?
Install Office voulme licenses
cd /d c:\library
for /f %x in ('dir /b *') do cscript %folder%\ospp.vbs /inslic:%x

Step 2.4: Follow the second step of method 1 above.

Finally, check activation status again.

How do I permanently activate Office 2013 from command prompt?
Office is activated successfully

More information:

  • Here is the virustotal result of the library: Office 2010 lib | Office 2013 lib
  • Using the library makes many of you guys feel uncomfortable, I know. This is the reason why I did not want to write about Office 2010 and 2013. If you do not like using the additional library, please use Office 2010/2013 volume or upgrade to a newer version.

If you would have any questions or concerns, please leave your comments. I would be glad to explain in more details. Thank you so much for all your feedback and support!

I am Guang, a freelancer and a blogger. I'm currently managing KMS system, MSGuides blog and 2 tech Youtube channels.

→ View all my posts | Support my projects or Buy me a coffee

How do I force Office 2013 to activate?

From the start menu click All programs > Microsoft Office 2013, then click on any program in the folder (e.g., Access 2013, Excel 2013) to open it. The Activate Office window will open.

How do I activate Microsoft Office from the command prompt?

Please DO NOT attempt to follow these instructions if you have the Office 365 edition..
Open an Elevated Command Prompt window. ... .
CD \Program Files\Microsoft Office\Office16. ... .
cscript ospp.vbs /sethst:kms01.cit.cornell.edu. ... .
cscript ospp.vbs /act. ... .
Close the command prompt window..

How do I activate Office 2013 without product key?

Activate Microsoft Office 2013 without Product Key Free 2020.
Step 1: You copy the following code into a new text document..
Click here to copy this code..
Step 2: Paste the code into the text file. ... .
Step 3: Run the batch file as administrator..
Step 1: Run command prompt as administrator..

How do I activate Microsoft Office 2013 offline?

If you intend to install offline, you will need a NEW KEY and an install disc. Using a computer with internet access and a DVD Burner, visit office.com/myaccount. Register/Login and register your product key from the paper card.