Solved

get iis iusr programmatically

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

domain\IUSR_xxx
0
Comment
Question by:triplebd69
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 35111343
Hi,

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?

Cheers,
Hades666
0
 

Author Comment

by:triplebd69
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
0
 

Author Comment

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

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

Author Closing Comment

by:triplebd69
ID: 35128400
Got me looking in the right direction.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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