AppData location when running under System user account

As it took far too much Googling to find this, if you need to access the AppData folder for the System account, go here:

C:\Windows\System32\config\systemprofile\AppData\Local
C:\Windows\SysWOW64\config\systemprofile\AppData\Local
I hit this because we needed to clear the NuGet package cache for a TeamCity build agent which was running as a service under the System account.

Comments

8 responses to “AppData location when running under System user account”

  1. Paul avatar
    Paul

    Can’t you just do Start –> Run –> %APPDATA% ?

    1. Marty avatar
      Marty

      Not for the “Local System” user account.

  2. Abel Braaksma avatar

    Thanks for putting this out here, I had some trouble finding this location as well.

    Note that, while this is true for NuGet, if your application uses logging and stores the logging in %APPDATA%, it will end up in the same location except it’s AppData\Roaming (as opposed to AppData\Local).

  3. Ravi avatar
    Ravi

    Great! I spent an hour searching for this. Since the cache folder needs admin permissions to open, it doesn’t show up in the search as well. Thanks a lot for posting this. Big thumbs up!

  4. anonymous avatar
    anonymous

    Thank you so much for this post. I spent a long time trying to look for the AppData folder location and none of the answers I found online worked except this one.

  5. Pedro avatar
    Pedro

    Hi James, thanks for posting it.

  6. Håkon K. Olafsen avatar

    Thank you, you just saved me from the rabbit hole.

  7. Josh avatar
    Josh

    Thank you, i was trying to find where some log files were being generated when a command was exectued as system user. You’re a star 🙂

Leave a Reply to Ravi Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.