How to open Command Prompt on Windows with admin rights

In the latest version of Windows, Command Prompt (CP) option was removed from context menu when users right-click on Windows button at the left-bottom corner. It is replace with Windows Powershell. This has led many to think they are the same program but they are not, actually. To prevent you guys making a mistake, in this post, I will guide how to find and open CP on the latest builds of all Windows versions, one by one.

Open command prompt in administrator mode
Open command prompt in administrator mode

Step 1: Click on the Windows Start button (in the top left corner).

Step 2: Search for “cmd”.

Step 3: Right-click on and run the command prompt as administrator.

Note: To make sure that you do it exactly, please see the title of command prompt window.

Make sure "administrator" is in the title
Make sure “administrator” is in the title

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!

5/5 - (278 votes)

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

35 Comments

  1. how to resolve
    This computer does not have access to Windows Script Host. For more information, get in touch with your administrator.

  2. Your work is awesome Thank YOU!!!

    Is there any 365 office key (for android) that works? I ve tried KMS activation method… but doesn´t work. Can anyone help? Thanks

  3. Hi! I am Saba. Please tell whole process. I want to activate ms office 2016. what to do after running cmd as administrator?what is the next step?

  4. Microsoft Windows [Version 10.0.18363.836]
    (c) 2019 Microsoft Corporation. All rights reserved.

    C:\Users\steph>if exist “%ProgramFiles%\Microsoft Office\Office15\ospp.vbs” set folder=”%ProgramFiles%\Microsoft Office\Office15″

    C:\Users\steph>if exist “%ProgramFiles(x86)%\Microsoft Office\Office15\ospp.vbs” set folder=”%ProgramFiles(x86)%\Microsoft Office\Office15″

    C:\Users\steph>if exist “%ProgramFiles%\Microsoft Office\Office14\ospp.vbs” set folder=”%ProgramFiles%\Microsoft Office\Office14″

    C:\Users\steph>if exist “cd /d %ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs” set folder=”cd /d %ProgramFiles(x86)%\Microsoft Office\Office14″

    C:\Users\steph>cscript %folder%\ospp.vbs /inpkey:VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /sethst:kms8.msguides.com
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /setprt:1688
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /act
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>if exist “%ProgramFiles%\Microsoft Office\Office15\ospp.vbs” set folder=”%ProgramFiles%\Microsoft Office\Office15″

    C:\Users\steph>if exist “%ProgramFiles(x86)%\Microsoft Office\Office15\ospp.vbs” set folder=”%ProgramFiles(x86)%\Microsoft Office\Office15″

    C:\Users\steph>if exist “%ProgramFiles%\Microsoft Office\Office14\ospp.vbs” set folder=”%ProgramFiles%\Microsoft Office\Office14″

    C:\Users\steph>if exist “cd /d %ProgramFiles(x86)%\Microsoft Office\Office14\ospp.vbs” set folder=”cd /d %ProgramFiles(x86)%\Microsoft Office\Office14

    C:\Users\steph>cscript %folder%\ospp.vbs /inpkey:VYBBJ-TRJPB-QFQRF-QFT4D-H3GVB
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /inpkey:YC7DK-G2NP3-2QQC3-J6H88-GVGXT
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /sethst:kms8.msguides.com
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /setprt:1688
    Microsoft (R) Windows Script Host Version 5.812
    Copyright (C) Microsoft Corporation. All rights reserved.

    Input Error: Can not find script file “C:\Users\steph\%folder%\ospp.vbs”.

    C:\Users\steph>cscript %folder%\ospp.vbs /act

    1. KMS activation method, only allow one Office Program in the same PC.

      If fail in activate, you must uninstall the key first before retry activation.

  5. In the task bar propreties, there is a option to disable to replace the Powershell shorcut by the old CMD one in the win+X menu . I cant be more precise sorry cause my windows is not in english… in french : Désactiver “Remplacer Invite de commandes par Windows PowerShell dans le menu, lorsque je clique avec le bouton droit sur le bouton Démarrer ou que j’appuie sur la touche Windows+X”

    1. Sorry, here all method is only work on PC and Laptop. macbook pro is not MIcrosoft product, that is the reason why is not work for activation.

  6. i have done exactly the same steps with windows 10 and they have failed to be activated.Excel have failed to be activated

    1. KMS activation method must run with admin right online.

      Without Windows activation success first, don’t try activate Office program.

      1. one trick is to add PAUSE to the end of your batch file, which will prompt the user to press any key. Until the user presses any key, the window will remain open instead of closing automatically.

  7. Hi, Guang.

    I’m trying to activate my Windows and I’ve tried the 2 methods, but always get a message saying my version is not supported. I’m doing everything the way you said, running with admin rights and connected to the internet. Any suggestions? By the way, how can I know if my admin rights are without restrictions?
    Thank you very much! =)
    Greetings from Brazil!

    1. If you can create another admin ID with the admin Id you using, that meant your admin ID is without restriction.

  8. Powershell does the same task for CMD, however it contains more powerful commands within windows.
    Using powershell as administrator will do the same as cmd for administrator.