Elevating commands in Windows Vista from the commandline

UAC helps to make privilege separation more comfortable. However, there is no native way to start a command elevated from the commandline. I’ve often found myself to be typing “notepad hosts”, and then getting an error message that i lack the permissions for doing so.

Of course i can launch a cmd window with administrative capabilites (a neat trick for this is to put that at position one in the quicklaunch bar, and then launch it by pressing WIN + 1), but i’ve gotten using to the whole WIN + R, cmd, Enter deal (mostly because it also works on customer’s computers).

There’s a nice Script for elevating a command directly from the commandline. I really, really do wonder why there’s no such command in Vista by default. I’ll make that this is in our standard Image.

Leave a comment