[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 770
  • Last Modified:

get iis iusr programmatically

Can anyone tell me how to get through VB.NET ?

domain\IUSR_xxx
0
triplebd69
Asked:
triplebd69
  • 3
1 Solution
 
Brad HoweDevOps ManagerCommented:
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
 
triplebd69Author Commented:
Thanks, what I am trying to do is pull that value back and assign it a variable.

i.e. - x = domain\IUSR_xxx
0
 
triplebd69Author Commented:
Here is the code to get the info, if anyone else needs it.

x = System.Security.Principal.WindowsIdentity.GetCurrent.Name
0
 
triplebd69Author Commented:
Got me looking in the right direction.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now