Sometimes you want to work uninterrupted on a server and you definitely do not want to start notepad elevated in order to edit your stuff. There are of course many ways to do this, but I find myself using the following routine.
- Start an elevated CMD – Right click CMD and run as administrator.
- Run the following command: tskill explorer & explorer
To do this more automated you could save the command into a batch file on the desktop. And then when you need an elevated desktop you just right click the batch file and choose “run as administrator”.
You can now verify that explorer is running elevated by going into task manager and adding the “Elevated column”. (Right click on an existing column and choose “Select Columns”
This is of course not a best practice.
Best practice would be to elevate every application you need as you need it. For example when you need to edit the hosts file under c:\windows\system32\drivers\etc the best practice would be to start an elevated notepad to edit it.
When you run my command you will be able to browse to hosts file and choose edit directly without the need of elevating notepad first.
Hope you liked this tip. 🙂