ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
Go Back  Xtreme Visual Basic Talk > > > ProcessStartInfo run as Administrator


Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2018, 03:40 AM
Roger-U Roger-U is offline
Centurion
 
Join Date: Apr 2008
Location: Surrey, UK
Posts: 117
Default ProcessStartInfo run as Administrator


I am trying to use System.Diagnostics.Process to run a program as Administrator

Code:
Dim si As New System.Diagnostics.ProcessStartInfo
 si.Verb = "runas"
 si.FileName = ".....  .exe"
 si.UserName = "Roger"
 si.Password … etc
but it just ignores the request and starts the program normally.

And with UseShellExecute = True it gives an error

This has only just become an issue following the latest Windows 10 upgrade

I was perfectly happy without the endless updates!
Reply With Quote
Reply

Tags
program, run, administrator, issue, error, useshellexecute, true, happy, endless, updates, perfectly, windows, upgrade, si.filename, .exe, si.username, roger, runas, si.verb, si.password, request, starts, ignores, processstartinfo, dim


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
 
ProcessStartInfo run as Administrator
ProcessStartInfo run as Administrator
 
-->