Reputation: 60691
Given a specific app pool, is there a way to get the identity associated with it?
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:
is there a way to get the identity associated with it?
Upvotes: 3
Views: 110
Reputation: 9143
It can be found under processModel.identityType
:
(Get-Item IIS:\AppPools\DefaultAppPool).processModel.identityType
Upvotes: 3