Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Obtaining the identity of the app pool

Given a specific app pool, is there a way to get the identity associated with it?

enter image description here

In the image above, I am trying to get the "NetworkService".

I've tried the following:

Import-Module WebAdministration
Get-Item IIS:\AppPools\DeFaultAppPool|Select-Object *

However, identity is nowhere to be found:

enter image description here

is there a way to get the identity associated with it?

like image 636
Alex Gordon Avatar asked Nov 29 '25 15:11

Alex Gordon


1 Answers

It can be found under processModel.identityType:

(Get-Item IIS:\AppPools\DefaultAppPool).processModel.identityType
like image 166
Paweł Dyl Avatar answered Dec 01 '25 08:12

Paweł Dyl