I found this very useful script a while back that will give a local user temporary administrator rights without having to log off. Even though it’s not possible to refresh a security token group membership for a user without log off, this script makes it possible to execute programs as the current user with administrator rights.
Essentially all the script does is:
- Authenticate as Admin
- Add user to Admin group
- Starts command line process in a new session with a new token for user with admin rights
- Removes user from Admin group
Find the script MakeMeAdmin.zip and more information here – Aaron Margosis’ WebLog : MakeMeAdmin — temporary admin for your Limited User account