Re: Winform: Call a vbscript with elevated privileges



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


.



Relevant Pages

  • Winform: Call a vbscript with elevated privileges
    ... It lets a "normal" user select one or more scripts to be run with Admin ... password of the Admin (sort of) account is enough. ... different user account? ...
    (microsoft.public.dotnet.security)
  • Re: security breach?
    ... lots of stuff breaks if you're not an admin. ... shell scripts enough to be able to figure it out from what I've written ... but without the secure log. ... didn't work under a user account, and I don't recall exactly where I ...
    (comp.sys.mac.system)
  • Re: The Microsoft Search service cannot be administered under the present user accou
    ... When you changed the SQL-Service to run with Local User account (with admin ... rights), did you make this change in the SQL Server 2000 Enterprise Manager ...
    (microsoft.public.sqlserver.fulltext)
  • Re: I turned off UAC
    ... The User Access Control (UAC) can detect rootkits before they install. ... escalated to admin rights, the escalation to full-admin rights only last for the moment of escalation to do the task, and then the admin user is returned to being a Standard user again with Standard user rights only, not admin rights. ... Malware or a virus can only run under the context of the user account that is using the computer. ...
    (microsoft.public.windows.vista.general)
  • Re: umstieg und einstiegs fragen
    ... >>> Bei einem Kontaktformular ist mir ... PHP nichts mit CGI zu tun hat? ... dass der Admin ein paar Standard-Scripts zur Verfügung stellen konnte, ... und der User nur statischen Content, aber keine Scripts installieren ...
    (de.comp.lang.perl.cgi)