Command to run an application with Administrator privileges, but NOT AS administrator (prompt with UAC)

Solution 1:

As Notepad is a Windows tool, you may not set "Run always as administrator", but there's a trick. Create a symbolic link and open the properties dialog. Under the link properties, select Advanced (bottom right button) and select "Run link as administrator". This should elevate the process.

I hope this is still the same on Windows 7 (I tested on Windows Vista).

Solution 2:

Creating a shortcut to Notepad, and then going to its properties => Advanced run as administrator works on Windows 7 64 bit.

This is a good solution for me. I was looking for a way to add lines to the hosts file. This is not ideal, but it saves me a lot of time finding the damn thing.