IIS Application Pool Identities (appcmd.exe)

Configuring IIS Application Pool Identities

%windir%\system32\inetsrv\appcmd.exe set AppPool <your AppPool> -processModel.identityType:ApplicationPoolIdentity

Securing Resources

ICACLS test.txt /grant "IIS AppPool\DefaultAppPool":F