Windows 10: how to set Run as Administrator on cmd.exe? Solved

  1.    10 Jul 2016 #1

    how to set Run as Administrator on cmd.exe?


    I can set in the compatibility box of properties 'Run as administrator' checkbox for most programs, I cannot find the checkbox for cmd.exe?
    How can I get an icon on my desktop which will always open cmd.exe as admin by default?
      My ComputerSystem Spec

  2.    10 Jul 2016 #2

    Figured a way around


    Ok,, this worked for others:
    Copy cmd.exe from windows\system32 to for example c:\cmd.exe

    Then you can right click on cmd.exe and the compatibility mode tab is there, check run as admin, done., you'll have to change paths to get it to find, it.
    I think it might be possible to change ownership of cmd.exe to yourself, then assign all privs to yourself, then do this in place.
      My ComputerSystem Spec


  3. Posts : 22,856
    64-bit Windows 10 Pro build 16257
       10 Jul 2016 #3
      My ComputersSystem Spec

  4.    10 Jul 2016 #4

    Figured it out


    Ok, so the goal is to get cmd.exe in the windows\system32 to run as admin by default.

    This is critical as many tools I use spawn cmd.exe to do their work in the c root and elsewhere

    p.s. I'm a developer of 35 years....

    So way to do it is, grab ownership of cmd.exe, rename it to cmdorig.exe
    Then make a shortcut to cmdorig.exe on the desktop, give it Admin rights....
    Now copy the shortcut INTO the windows\system32 folder and rename is cmd.exe

    Now whenever anything runs cmd.exe (from windows\system32), it'll run the cmdorig.exe as admin.

    Man they make it hard to make a living.
      My ComputerSystem Spec


 

Related Threads
Solved Need Administrator Permission in Performance & Maintenance
I'm trying to replace calc.exe in the System 32 folder with a version from XP, but keep getting a notice that I don't have permission. I'm in as the Administrator, what more do I need to do? Thanks!
administrator ID in User Accounts and Family Safety
I am changing my email provider, how do I change it on my administrator ID. Or once I delete my currant provider account will I still be able to sign on to my computer with a deleted email?:confused:
Solved administrator has blocked in Software and Apps
Is there any way to work around this besides logging out then login back in as administrator? I did this to log in as administrator. “net user administrator /active:yes” I was only trying to install Cisco Connect from Linksys. After I got it...
Contact the administrator in Drivers and Hardware
I AM the administrator! So I went through the process of changing my login to the administrator after Windows 10 put someone I don't know in charge. I'm trying to re-install a wireless HP printer which worked exceptionally well in Windows 8. ...
Built in Administrator in User Accounts and Family Safety
Help running Windows 10, and I am stuck in the Built in Administrator log-in. It started when I was tring to disable the log-in password for my account in Windows. I can not log-in to my user's account and do not see my profile. I have went the...
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 06:19.
Find Us