javawindowsnetwork-service

What is the location of "NT Authority\Network Service" home directory?


I have an java application for which its cache gets created in under C:\Users\<User>. But when application runs as NT Authority\Network Service where does its cache get created ?


Solution

  • Can be found here %systemroot%\ServiceProfiles\NetworkService

    Usually %systemroot% translates to "C:\Windows". "systemroot" is an environment variable in windows that holds the path "C:\Windows" depending on your Windows OS installation location.

    Edit: It completely depends on an application to create its cache. But most of the developers use user's home directory to maintain applications cache.