473,799 Members | 2,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS process account

Is there any API to get the IIS process account(the default is ASPNET in
ASP.NET)?

Nov 19 '05 #1
3 1757
Hi Reza:

Assuming there is no impersonation token in place when you make the
call, WindowsIdentity .GetCurrent() will give you the process token
wrapped in a WindowsIdentity .

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 1 Jun 2005 12:16:01 -0700, "Reza"
<Re**@discussio ns.microsoft.co m> wrote:
Is there any API to get the IIS process account(the default is ASPNET in
ASP.NET)?


Nov 19 '05 #2
Thank you Scott. I want to know it in my installer program not inside ASP.Net
code. During installation I want to know the ASP.Net process account and add
it to AzMan store as administrator. I could not find it in IIS metabase.
Apart from machine.config is there any easier way to get it?

Regards
Reza

"Scott Allen" wrote:
Hi Reza:

Assuming there is no impersonation token in place when you make the
call, WindowsIdentity .GetCurrent() will give you the process token
wrapped in a WindowsIdentity .

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 1 Jun 2005 12:16:01 -0700, "Reza"
<Re**@discussio ns.microsoft.co m> wrote:
Is there any API to get the IIS process account(the default is ASPNET in
ASP.NET)?


Nov 19 '05 #3
Oh - that one can be tricky actually.

In IIS5 I can't think of anyway to do this except by inspecting
machine.config.

In IIS6, unfortunately, I can't think of a way to do this without
looking in the metabase, because IIS6 ignores the <processModel >
section in machine.config.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 1 Jun 2005 14:51:03 -0700, "Reza"
<Re**@discussio ns.microsoft.co m> wrote:
Thank you Scott. I want to know it in my installer program not inside ASP.Net
code. During installation I want to know the ASP.Net process account and add
it to AzMan store as administrator. I could not find it in IIS metabase.
Apart from machine.config is there any easier way to get it?

Regards
Reza


Nov 19 '05 #4

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

Similar topics

6
25877
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The client should be able to run our software was a regular user, so what additional permission must I grant that user for this to work? thanks!
2
2339
by: Studio P.M. | last post by:
Does anyone know a valid and compete reference paper about what the “Worker Process” precisely is and does? So far I couldn’t find any. Reason is that during last weeks I had to go deep down into SharePoint security, and the related identities. Which, by the way, as I realized, are at least two: the Log on “real” one, and the Application Pool “ghost” one; under which, indeed, the “Worker Process” is said to operate:...
3
2574
by: Jrn A. | last post by:
I'm working on a web based user interface for a job scheduling system (running scripts). The system is using a non-windows scheduler software, but it's installed and running as a windows service. The service is running with the credentials of a specified domain user, and all processes kicked off by the scheduler service runs with these credentials. In the web based interface I want to add a "Run" button for each job, making it...
11
1821
by: Richard Myers | last post by:
Hello Im sure many of you have seen this error message before: For us its the third time this year. This error occurs seemingly at random. I have no idea what causes it too happen. None. Question 1: Do you?
3
1978
by: Christopher | last post by:
One of our ASP.NET Pages is starting a new Process using the Process object. When the process starts, it is started under the ASPNET User. We tried editing the web.config file and the machine.config to operate under other user accounts but our dynamically started process still starts under ASPNET. How do you programatically start a process under a specific Windows User Account? Thanks so much! Christopher
5
2075
by: Paul Bergson | last post by:
I have been trying to get a process to start up and run with arguments passed to it. I have gotten close (Thanks to help from this board) but I there is a failure while I'm running this because the c:\bin\xcacls starts nothing happens. How can I see output from the console i was trying to get the ProcessStartInfo.RedirectStandardOutput Property to work but even if I got the system to process it I didn;t know where the output was being...
1
3293
by: Qais | last post by:
Hi there all, i am trying to work on this for past two weeks but nothing seem to work. I am trying to launch a process from windows service (i have to do this way, no other option). Windows service is running under system account with interaction with desktop enabled. The application i want launch is a vb.net gui application. I have tried using wmi, windows api, managed system.process.start method but all have one problem or the other....
2
6443
by: Alexander van Doormalen | last post by:
I am trying to run an external process (command tool) within a Windows Service with the specified account. When the application launches I get a error dialog with the following message: Application popup: <COMMAND TOOL> - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application. I use the following code to start the process (not relevant code is stripped):
3
11245
by: SugarDaddy | last post by:
Here's my problem. I have an NT service (really a .NET service) running as local system. I have a .NET form running on the user account. The form and the service communicate via an IPC Channel so the form can control the service and do various things. Both applications share the same set of dlls. When performing an update of some of the dlls, both the service and the form must be shut down (that's just how it's implemented -- didn't
2
1999
RAJSPY
by: RAJSPY | last post by:
Hi all, I am trying to get an admin process started under a user account. I want to start a process that can install programs under this user account. Our company now has a full admin access for everyone to there computer. We want to downgrade this to an user account. The problem comes with installing own programs (Users may install what they want.). For distributed programs we have SMS. So i want something like a install account that...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10251
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
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
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.