Windows 10: Can you open Elevated Command Prompt from Command Prompt?

Page 1 of 5 123 ... LastLast
  1.    10 Feb 2018 #1

    Can you open Elevated Command Prompt from Command Prompt?


    I have read everything I can find on Error messages regarding looping of Preparing to Repair.
    I can not open my computer to Windows...it never loads. I started experiencing problems a while ago. Finally, I would be able to get on line, but only for about a minute before it froze up.

    I am trying to do a Repair using Command Prompt because that is the only option I seem to have left. But regardless of the command....sfc /scannow or anything else...it won't go there...because it is not recognizing me as Admin.
    So...my question is as the title says: Is there a way to open elevated command prompt from command prompt?
      My ComputerSystem Spec

  2.    10 Feb 2018 #2

    Welcome to the forum. Yes you can by using runas see out tutor Run as different user in Windows 10 User Accounts Tutorials
      My ComputerSystem Spec


  3. Posts : 14,223
    Windows 10 Pro
       10 Feb 2018 #3

    To start an elevated Command Prompt from normal user mode Command Prompt, the command is:

    runas /user:administrator cmd

    Please notice that you must first set a password for built-in administrator account. If you run the command when built-in admin has no password (by default ihas none), the command fails with following error message:

    Account restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced..
      My ComputerSystem Spec

  4.    10 Feb 2018 #4

    Thank you so much! I can put in an admin in Set Up....correct? I'll give that a shot. Thank you again! I'll let you know how that works out.
      My ComputerSystem Spec

  5.    10 Feb 2018 #5

    I am getting a message that says: 'runas' is not recognized as an internal or external command...
      My ComputerSystem Spec

  6.    10 Feb 2018 #6

    at command prompt it says x:/windows/system32> How do I get to C:

    at the top of the command prompt it says:
    Adminstrator: X:\windows\system32\cmd.exe
      My ComputerSystem Spec


  7. Posts : 14,223
    Windows 10 Pro
       10 Feb 2018 #7

    Danfu said: View Post
    I am getting a message that says: 'runas' is not recognized as an internal or external command...
    If you run it from Command Prompt at boot, you'll need to add path to runas command, it is located in C:\Windows\System32 folder:

    C:\Windows\System32\runas /user:administrator cmd

    Kari
      My ComputerSystem Spec

  8.    10 Feb 2018 #8

    thanks
      My ComputerSystem Spec

  9.    10 Feb 2018 #9

    How are you able to reach the Command Prompt option?

    Since you cannot boot into Windows check
    Boot to Advanced Startup Options in Windows 10
    Boot to Advanced Startup Options in Windows 10 Installation Upgrade Tutorials
    Two consecutive failed attempts to start Windows.
    Two consecutive unexpected shutdowns that occur within two minutes of boot completion.
    --- Two times usually work but there have been times when I had to do 3 times.
      My ComputersSystem Spec

  10.    10 Feb 2018 #10

    Kari said: View Post
    If you run it from Command Prompt at boot, you'll need to add path to runas command, it is located in C:\Windows\System32 folder:

    C:\Windows\System32\runas /user:administrator cmd

    Kari
    Kari,
    I appreciate your help. I don't seem to be able to gain access to anything except the command prompt. Could you please explain to me how to access the windows 32 folder?
      My ComputerSystem Spec


 
Page 1 of 5 123 ... LastLast

Related Threads
I am a standard user: there is no "Administrator" next to my name when I look at "Your Info" for my account in user settings. the output of "net localgroup administrators" does not contain my user name. I am on a domain-managed machine...
A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require administrator rights on your computer without using the Windows...
1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges" 2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to...
I have the Command Prompt icon on my Taskbar as I use it a lot. It's set to always run as Administrator, so when I launch it, the Command Prompt window opens to C:\Windows\system32. I want it to open to %userprofile% which is...
I changed Command Prompt on my Taskbar so when I click on it, it opens as Administrator. That sets the default directory as C:\WINDOWS\system32 which I don't like, since any files I create that do not have a path specified will be created there. ...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 23:17.
Find Us