Check out WindowsIdentity class in System.Security.Principal.
There is an Impersonate() method that will do what you are trying to
accomplish. The missing link with this class is that you have to obtain an
access token handle to use it. The only way I know of doing this is by
pinvoking one of the Win32 security functions like LogonUser().
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
"JM" <JM@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
Hi
Is there a way to invoke an external program in C# with Administrator
credentials? You know run an external VBS or batch?
Any reference material would be useful.
TIA