Raymond.CC Blog
  • Home
  • Forum
  • Giveaway
  • X-Ray 2.0
  • Contact
  • About
  • I’m Feeling Lucky
Search the site...
You are here: Home » Computer » Trigger UAC Elevation from Command Line with Elevate Utility

Trigger UAC Elevation from Command Line with Elevate Utility

Updated by Raymond - 1 year ago - Computer
2
  • Like
  • +1
  • Tweet
  • Printer Friendly and PDF

Few days ago I was playing around with a rogueware and investigating the possibilities on what I can do when the EXE association has been modified or broken. As we all know, the EXE association plays a very important part in Windows operating system because most programs runs under a EXE file. Some examples are a .reg file requires regedit.exe, .msi file requires msiexec.exe, .vbs requires wscript.exe, .txt requires notepad.exe, and many more. So now you can imagine how bad the situation can get if the EXE extension is broken which prevents you from a lot of solution to fix the problem. Fortunately running any program from Windows Task Manager that is launched via Ctrl+Shift+Esc hotkey uses the default Windows EXE extension rather than the associated EXE extension in registry.

One limitation which I’ve discovered when a program ran from Windows Task Manager is its not necessarily elevated. Running regedit.exe is fine because every time you run regedit will prompt the UAC elevation window and clicking yes will give you full control over it. However try running the command prompt (cmd.exe) from there and it runs without an administrator privileges, limiting you from making any system changes.

For most programs, you can create a shortcut and then access the short’s properties by right clicking on the shortcut and select Properties. Go to Compatibility tab and check Run this program as an administrator. However this method is not possible for command prompt because all the check boxes and options in the Compatibility tab will be grayed out.

Compatibility modes cannot be set on this program because it is part of this version of Windows
Compatibility modes cannot be set on this program because it is part of this version of Windows

I could right click on the cmd.exe and select Run as Administrator but then the rogueware automatically terminates the command prompt upon running. So I am left with a final option to use a command line to trigger the UAC elevation on cmd.exe from Windows Task Manager > File > New Task (Run…). After looking around, I found two utilities that allows me do just that. Both programs are named Elevate, one is written by Kai Liu and the other by John Robbins. One example to use the elevate utility is to execute “elevate notepad” and you’ll be prompted with the UAC prompt to run notepad right from the command line.

In my case, I will execute elevate.exe cmd.exe at the Create New Task window from Windows Task Manager > File > New Task (Run…). I’ll be prompted with the UAC prompt and clicking Yes will run the command prompt as elevated.

Command Line UAC Elevation

The best part is any programs that I run FROM the elevated command line will be automatically elevated as well. For example, I will not be prompted the UAC window if I run regedit.exe from the elevated command prompt. The Elevate utility is definitely a very useful tool for power users.

Download Elevate by John Robbins OR Kai Liu

Didn't find what you want? The links below could help:

Disable UAC for Specific Software in Windows 7 with UAC Trust ShortcutDisable UAC for Specific Software in Windows 7 with UAC Trust ShortcutMozilla Maintenance Service maintainanceservice.exe by FirefoxMozilla Maintenance Service maintainanceservice.exe by FirefoxOPA-Backup Restores Your Office XP, 2003, 2007 and 2010 ActivationOPA-Backup Restores Your Office XP, 2003, 2007 and 2010 ActivationWeaknesses in Windows 7 User Account ControlWeaknesses in Windows 7 User Account Control

2 comments on “Trigger UAC Elevation from Command Line with Elevate Utility”

  1. xpclient says:
    1 year ago

    There’s also Nircmd Elevate.

    Reply
    • Kubo says:
      1 year ago

      Thanks for this info, NirSoft app. about.

      Reply

Leave a Reply Cancel reply

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

Recently Updated

  • flash bios icon

    5 Tools to Easily Install FreeDOS or MS-DOS onto USB for BIOS Flashing

  • avast icon

    Reset or Remove avast! Authorization Password to Access Settings

  • U3 icon

    How to Customize U3 USB Smart Drive to Become Ultimate Hack Tool

New Articles

  • task manager replacement icon

    Memory Usage Test to See Which is the Lightest Antivirus Software

  • kaspersky antivirus 2013 icon

    Activate Free Kaspersky Anti-Virus 2013 ROG with 1 Year License

  • remote access software

    Top 8 Remote Access Software for Providing Online Support

Popular Posts

  • Top 10 FREE Data Recovery Software

    Top 10 FREE Data Recovery Software

  • How to Hack Into a Windows XP Computer Without Changing Password

    How to Hack Into a Windows XP Computer Without Changing Password

  • 10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

    10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

Recommend on Google
Follow @raymond_cc
Subscribe Youtube »
(c) 2013 Raymond.CC Blog
  • Contact
  • Disclaimer
  • Disclosure
  • Privacy Policy
  • Terms of Use
  • Sitemap