how to set Run as Administrator on cmd.exe?


  1. Posts : 8
    10
       #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 Computer


  2. Posts : 8
    10
    Thread Starter
       #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 Computer

  3. Brink's Avatar
    Posts : 48,943
    64-bit Windows 10 Pro for Workstations build 19640
       #3
      My Computers


  4. Posts : 8
    10
    Thread Starter
       #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 Computer


 

Related Threads
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 05:54.
Find Us




Windows 10 Forums