Re: Winform: Call a vbscript with elevated privileges
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 9 Nov 2006 15:31:41 +0000 (UTC)
Have a look at the StartupInformation you can pass into Process.Start. Here you can specify username/password.
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
I am making a .NET 2.0 WinForms application.
It lets a "normal" user select one or more scripts to be run with
Admin (sort of) privileges. And their actions get logged in a
database.
How do I run a script as another user?
It's not super secret stuff we are talking about. Embedding the name
and password of the Admin (sort of) account is enough.
I saw this piece of code for calling calc.exe. How do I modify it to
use a different user account?
ms-help://MS.VSCC.v80/MS.MSDN.vAug06.en/ws_wminet_conc/html/b40d2a05-e
631-4a09-97cb-881d452dc432.htm
thx
/jim
.
- Follow-Ups:
- Re: Winform: Call a vbscript with elevated privileges
- From: Jim Andersen
- Re: Winform: Call a vbscript with elevated privileges
- From: Jim Andersen
- Re: Winform: Call a vbscript with elevated privileges
- References:
- Winform: Call a vbscript with elevated privileges
- From: Jim Andersen
- Winform: Call a vbscript with elevated privileges
- Prev by Date: Re: FullTrust on network drive
- Next by Date: Re: How to show the windows 'Connect To' dialog from C#
- Previous by thread: Winform: Call a vbscript with elevated privileges
- Next by thread: Re: Winform: Call a vbscript with elevated privileges
- Index(es):
Relevant Pages
|