473,395 Members | 1,495 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,395 software developers and data experts.

Logged user with vista rights elevation

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
account & rights...
My problem is : i no longer arrive to get TOTO Environnement Variables !
even the Vista Logged username TOTO is impossible to retrieve through my
application

i tried : Environnement.UserName ->ADMIN
Registry keys (HKEY_CURRENT_USER) : all are swapped to ADMIN
values ...
Security.Permission ... namespace : Same result !

This issue make me crazy !!! if anyone know how to ...
Thanks in advance
GuiD
Jan 18 '08 #1
2 2954
"GuiD" <gd*****@gmail.comwrote in message
news:uS**************@TK2MSFTNGP06.phx.gbl...
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
account & rights...
How did you launch the application, some code would be a great help.
My problem is : i no longer arrive to get TOTO Environnement Variables !
even the Vista Logged username TOTO is impossible to retrieve through my
application
If you start an application to "runas" ADMIN, you no longer have access to
TOTO's environment, you are running in ADMIN's context, what did you expect
otherwise?
Anyway, show us your code and tell us why you need to run elevated?

Willy.

Jan 18 '08 #2
I think the problem might be how your software was installed.

Dont install it as an admin !
Install it as the TOTO user.

Jan 18 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Whitmer | last post by:
I am trying to put together a web page to show remote users which PC's are available for RDP so they can use. The page work's fine except for when the goes to the pc to pull the info on if anybody...
6
by: John Dalberg | last post by:
I want to automate the process of logging into an intranet. I want to pull out the username of the Windows user logged into the machine running the browser and use the username in my app. How can I...
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...
0
by: Bill Nguyen | last post by:
I have a VS app published on our Intranet using OneClick publishing. I can't run it on a Vista client PC. Please take a look at the error message below and let me know what I need to do to make...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
4
by: James | last post by:
Hi, I have just upgraded a user machine to Vista (our first) as a test. Unfortunately a couple of our apps are failing due to Vista... 1. One app that loads an assembly from an Intranet...
12
by: d-42 | last post by:
Hi, How do I ask for escalation from within a program? I'm developing a standalone program that can also act as a 'plugin' to another application. The way the other app was designed, it scans...
4
by: =?Utf-8?B?WmFyYm9yZw==?= | last post by:
I'm writing a little program that will run when a user logs in, checks their password expiration and also installs a piece of monitoring software if necessary. The program has to run on Vista so I...
4
by: Icon Iconoclast | last post by:
When I run: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -I I get the message: An error has occurred: 0x800702e4 The registered operation requires elevation
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
tracyyun
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...

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.