In a recent project I needed to execute some stuff at logon with administrative privileges. Certainly there were quite a few commercial alternatives, but from my research they all used the CreateProcessAsUser API with various fancy user interfaces.
The tool I chose to use was the freeware CPAU.
Please note. Using a tool such as CPAU or the commercial alternatives produces a security risk as even though the password might be encrypted in whatever fashion it still passes the password in clear text to CreateProcessAsUser. That, however was a risk I was willing to take under the circumstances..
CPAU
Command line tool for starting process in alternate security context. Basically this is a runas replacement. Also allows you to create job files and encode the id, password, and command line in a file so it can be used by normal users.
Read more and download here

