re:
!> I want to get the name of the user running the ASP.NET processes in IIS
Use WindowsIdentity.GetCurrent.Name() :
-------------
<%@ Page Language="VB" %>
<%@ Import NameSpace = System.Security.Principal %>
<script runat="server">
Sub Page_Load()
Dim tmp As String = WindowsIdentity.GetCurrent.Name()
Label1.Text = "ASP.NET is running as the account : " & tmp
End Sub
</script>
<html>
<head>
<title>What account is ASP.NET running as ?</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" Runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
-------------
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"Vilhelm" <(E-Mail Removed)> wrote in message
news:3B433FF8-FC40-4123-915B-(E-Mail Removed)...
> The problem is a little more complicated.
>
> I don't need the name of the user running the current process.
> I want to get the name of the user running the ASP.NET processes in IIS,
> when I am running in an installer process probable running as an
> Administrator.
>
> How is that done?
>
>
>
> "csharper" wrote:
>
>> This code may be helpful:
>>
>> System.Security.Principal.WindowsIdentity.GetCurrent().Name;