473,394 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

vista - launch process as different user with elevation from non privileged process

I have a process (A) that runs at user login on many systems. The users are usually not Administrators. I want the process to be able to launch a process (B) to do Admin level tasks. I have a common Administrator account ( called sysuser) on each system. I can use this to run process B in. Users cannot know the password to this account.

I have had little success with .net process,processstartinfo so far in Vista

if process B does not have a 'RequiresAdminLevel' manifest then vista runs it okay as sysuser but at least privilege level. If I put a 'RequiresAdminLevel' manifest in process B then I get an exception 'Requires Elevation' and B does not run.

The only way I can get the system Elevation prompt is if I ...
1/ set processstartinfo.verb="runas"
2/remove the Username/password of 'sysuser'

then the elevation prompt occurs but users are left being asked to enter a password to a priviliged account they are not allowed to know.

I want the user to just have to accept the elevation prompt and then B run elevated under the 'sysuser' account. Anyone any ideas?
Feb 18 '10 #1
0 1202

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Frank Rizzo | last post by:
I've heard rumblings here and there that various versions of Visual Studio will not run on Vista. I can't find definitive explanation anywhere of which one will run and which one won't. I am...
5
by: Atara | last post by:
On Windows Vista, Process.Start() generates Win32Exception. Sample Code: Dim selfProc As String = System.Windows.Forms.Application.ExecutablePath System.Diagnostics.Process.Start(Chr(34) &...
4
by: Brent | last post by:
Ok i just went from XP Professional to Vista Ultimate x64 last night. I installed vs 2005, sp1, and the update for sp1 for vista. I started up VS2005 and still got the warning message that deals...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
0
by: DBC User | last post by:
Hi all, I have a quick question on vista elevation. I have 2 application, one main GUI which user interacts with and another one is a tray program. User have options to install products from the...
2
by: GuiD | last post by:
Hi all, Happy new year ;-) Here is my crazy issue. Situation : On vista, i have my admin account named "ADMIN" and another account named "TOTO" i created a C# application and launch it...
5
by: sawilla | last post by:
First, I'm new to Python. I'm getting and error when I run Python 2.5.2 as a regular user in Vista but not when I run Python as an administrator. For example, if I type "import numpy" after I...
11
by: idoublepress | last post by:
Hi all, I've been struggling with an issue that I hope you can comment on or provide suggestions to. Our .NET 2.0 (VS2005) based product is crashing (when the user selects a particular feature on...
6
by: sd | last post by:
hello I need to keep my app entry under HKEY_LOCAL_MACHINE\Software\MyApp. (to support for all users).I need to update one key under MYApp. When I attempt to set value for this key...
29
by: process | last post by:
i just downloaded 2.6 and when running the gui nothing happens. anyone else with the same problem?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.