Wednesday, December 24, 2008

Run as Administrator - Win 2008 Server

I keep running into weird issues on Windows 2008 Server. UAC prompt is not triggered by all applications and they fail silently and then provide strange looking errors. Firefox can not open security database, KeePass 2.0 can not save the key file, etc.

The quick and dirty solution is to run these programs as Administrator:

The best option is to go to file's properties, tab Compatibility, and check the "Run this program as an administrator" check box.

Another way to do this is to create a shortcut to the .exe file, then go to Properties - Shortcut - Advanced, and select Run as Administrator checkbox. This will trigger UAC prompt when the program is run.

Another version of this is to press Windows button, then type the name of the program in the search box and, instead of Enter, press Ctrl+Shift+Enter. This will run the program as Administrator automatically.

Second kind of solution would be to run "runas /user:Administrator <program>". This leaves command prompt open while the program is running and also asks for the Administrator password.

No comments: