This snippet works different on IIS8 and IIS10 with same configuration.
IIS8 is delegating Domain\\user good
Domain\\user
IIS10 is using APP POOL\\
APP POOL\\