Cmd Line Windows Activation

When traditional means of activating Windows aren't working, you can use the slmgr command to activate Windows with the Command Prompt. Step 1 Finding the product key If you're already in possession of a product key, continue to Step 2. Open the Command Prompt (Admin) or PowerShell (Admin). Use the Windows key + R keyboard shortcut to open the Run command. Type changepk.exe and click OK to open the Windows activation client. Enter the 25-digit product key for the version of Windows 10. This is about how to Reset or Remove Windows Activation/Remove license key using a command. It will work for window operating system all versions. This is very important for any admin to make sure before formatting any of system remove license which exist in the systems or activated the same.

This page is intended for technical support providers and network administrators. If you're not one of those, you should talk to your TSP or net admin before proceeding. The concept behind the procedure on this page is explained on our main KMS page.

This page describes how to manually activate products. With this method, you'll need to run commands on each machine - and for each software package - during the 30 day grace period after installation. If you are using virtual machines for testing and cross-compatibility on Macintosh computers, you'll need to use the manual method in those circumstances.

KMS activation can be blocked by a firewall. Please be sure that any firewalls between the client machine and the KMS server are open to incoming and outgoing traffic on TCP port 1688.

Line

Command Line Windows Activation Status

To use this method, first install the software (Windows or Microsoft Office). As part of that process you'll be informed that you have 30 days to activate the product. Complete the steps below during that 30-day period.

This method assumes that Windows or Office has never been activated on this machine before. If your machine had previously been activated with the earlier MAK activation method, please instead follow the instructions to switch from MAK to KMS activation.

Activate a Windows Operating System (All Supported Versions)

  1. Open an Elevated Command Prompt window. For instructions, please see our guide How To Open an Elevated Command Prompt.
  2. In the elevated Command Prompt window, verify that the current directory is C:WindowsSystem32. If it is not, type
    CD WindowsSystem32
    and press .
  3. Type the following command:
    cscript slmgr.vbs /skms kms01.cit.cornell.edu
    and press .
    (Note: The url in the command above begins with kay-emm-ess-zero-one.)
  4. Type the following command:
    cscript slmgr.vbs /ato
    and press .
  5. Close the Command Prompt window.

And you're done for that installation of Windows on that computer.

Activate Desktop Edition of Microsoft Office 2016

These instructions only apply to the Desktop (Volume-Licensed) Edition of Microsoft Office, which is distributed as a disk image via CU Software Licensing. The Office 365 edition of Office (downloaded from Microsoft) does not use KMS activation. Please DO NOT attempt to follow these instructions if you have the Office 365 edition.

Cmd Line Windows 10 Activation

  1. Open an Elevated Command Prompt window. For instructions, please see our guide How To Open an Elevated Command Prompt.
  2. Type
    CD Program FilesMicrosoft OfficeOffice16
    then press .
    This assumes you installed Office in the default location.
    Note: If you installed the 32-bit version of Office on a 64-bit system, use this command instead:
    CD Program Files (x86)Microsoft OfficeOffice16
  3. Type
    cscript ospp.vbs /sethst:kms01.cit.cornell.edu
    then press . (Note: The url in the command above begins with kay-emm-ess-zero-one.)
  4. Type
    cscript ospp.vbs /act
    then press .
  5. Close the command prompt window.
Command line windows activation status

And you're done for that installation of Office on that computer.