Is there a folder on Windows that always exists (like a user home or ProgramData), but it can be modified and read only by Administrators?
So far, the best candidate I found is the %APPDATA% of the "Local System" account that seems to exist always. But it's real location depends on the Windows version and if it is running as a 32-bit or a 64-bit application.
- C:\Windows\system32\config\systemprofile\Application Data
- C:\Windows\system32\config\systemprofile\AppData\Roaming
- C:\Windows\SysWOW64\config\systemprofile\AppData\Roaming
There is also a chance that in the future it may even migrate somewhere under
- C:\Windows\ServiceProfiles\LocalService
And it may not be that easy to find this location if a software is running under another Administrator's account and not as "Local System" (a Service).
Is there maybe a better alternative to %APPDATA% of the "Local System" that I am missing?
Or is there a simple and reliable way of getting %APPDATA% of the "Local System" account by any other Administrator user?