Let Cmd.exe always run as administrator in Win8

Source: Internet
Author: User

Recently learning to configure the local server, the command line to start MySQL is always due to insufficient permissions to fail,

Looked at a lot of ways, and finally found a way to once and for all.

Win+r-cmd, this is always not possible, but also to find Cmd.exe right-click to run cmd as an administrator, and then net start MySQL can.

Every time this is quite troublesome, can the default let Cmd.exe as an administrator to run it?

The answer is yes.

Win+r--regedit

Locate the following location

HKEY_CURRENT_USER\Software\Microsoft\Windows Nt\currentversion\appcompatflags\layers

, create a new string value, named "C:\windows\system32\cmd.exe", generally our system is installed in the C-drive it???

Then right--modify--value data written to "RUNASADMIN", OK!

If it is too troublesome to do so, copy it directly to the system installed in the C-drive 32-bit:

Windows Registry Editor Version 5.00[hkey_current_user\software\microsoft\windows nt\currentversion\appcompatflags\ Layers] "C:\\windows\\system32\\cmd.exe" = "RUNASADMIN"

Open Notepad, copy and paste the above code, save as 1.reg, and then double-click to import the registry.

OK, this time we win+r input cmd, the startup is already the default administrator identity.

Let Cmd.exe always run as administrator in Win8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.