vista - launch process as different user with elevation from non privileged process | Bytes (2024)

Home Posts Topics Members FAQ

starrysky

vista - launch process as different user with elevation from non privileged process | Bytes (1) 10 New Member

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,process startinfo so far in Vista

if process B does not have a 'RequiresAdminL evel' manifest then vista runs it okay as sysuser but at least privilege level. If I put a 'RequiresAdminL evel' 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 processstartinf o.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

Subscribe Reply

0 vista - launch process as different user with elevation from non privileged process | Bytes (2) 1220 vista - launch process as different user with elevation from non privileged process | Bytes (3)

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

Similar topics

9 1686

Visual Studio on Vista

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 mostly interested in vs2003 and vs2005. Is it mostly an issue of UAC or not running as an admin? Regards

C# / C Sharp

5 5820

On Windows Vista, Process.Start() generates Win32Exception.

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) & selfProc & Chr(34)) The generated Exception:

Visual Basic .NET

4 1491

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 with compatability of Vista & VS2005 which i was suprised. I would think after the update for sp1 for vista would have taken care of that but i guess...

.NET Framework

4 2304

Vista development issues - general issues/questions

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 dummy console application that creates a file in Program Files directory, this one will succeed and will create the file b/c of the virtualization....

.NET Framework

1352

vista elevation question

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 main GUI program, which in turn writes the requests and pass it to the tray program. The tray program will download and then runs the setup.exe in...

C# / C Sharp

2 2964

Logged user with vista rights elevation

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 through "TOTO" account. the application request Rights Elevation . so when i start the application, Vista request ADMIN password to use this

C# / C Sharp

5 1963

module error in Vista -- works as administrator

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 launch python from an adminstrator-privileged command window it loads fine. However, from a regular-user command window I get: Traceback (most...

Python

11 1908

reflection, COM, and Vista

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 the UI) on Vista. It works fine on XP. In a nutshell: - user makes a selection on the UI - System.Reflection.MethodInfo.Invoke() calls into...

.NET Framework

6 6677

write to registry in vb.net and vista

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 My.Computer.Registry.LocalMachine.CreateSubKey("software \MyApp").SetValue("Licence", "Success") I get error stating Access to HKEY_LOCAL_MACHINE\Software\MYapp...

Visual Basic .NET

29 1958

Python 2.6, GUI not working on vista?

by: process |last post by:

i just downloaded 2.6 and when running the gui nothing happens. anyone else with the same problem?

Python

7656

Changing the language in Windows 10

by: Hystou |last post by:

Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...

Windows Server

8159

Maximizing Business Potential: The Nexus of Website Design and Digital Marketing

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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...

Online Marketing

8013

Discussion: How does Zigbee compare with other wireless protocols in smart home applications?

by: tracyyun |last post by:

Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...

General

6344

AI Job Threat for Devs

by: agi2029 |last post by:

Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...

Career Advice

5250

Couldn’t get equations in html when convert word .docx file to html file in C#.

by: conductexam |last post by:

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...

C# / C Sharp

3689

Trying to create a lan-to-lan vpn between two differents networks

by: TSSRALBI |last post by:

Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

Networking - Hardware / Configuration

3678

Windows Forms - .Net 8.0

by: adsilva |last post by:

A Windows Forms form does not have the event Unload, like VB6. What one acts like?

Visual Basic .NET

1 2160

transfer the data from one system to another through ip address

by: 6302768590 |last post by:

Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

C# / C Sharp

1 1245

How to add payments to a PHP MySQL app.

by: muto222 |last post by:

How can i add a mobile payment intergratation into php mysql website.

PHP

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

To disable or enable advertisem*nts and analytics tracking please visit the page.

vista - launch process as different user with elevation from non privileged process | Bytes (2024)

References

Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5723

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.