get iis iusr programmatically

Posted on 2011-03-11
Last Modified: 2012-05-11
Can anyone tell me how to get through VB.NET ?

Question by:triplebd69
  • 3
LVL 30

Accepted Solution

Brad Howe earned 500 total points
ID: 35111343

The IUSR account is the anonymous user account that IIS manages. If you have domain\IUSR_XXX then IIS is installed on a Domain controller.

With that said, what are you trying to do?


Author Comment

ID: 35128330
Thanks, what I am trying to do is pull that value back and assign it a variable.

i.e. - x = domain\IUSR_xxx

Author Comment

ID: 35128394
Here is the code to get the info, if anyone else needs it.

x = System.Security.Principal.WindowsIdentity.GetCurrent.Name

Author Closing Comment

ID: 35128400
Got me looking in the right direction.

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now