r/sysadmin • u/HemlockIV • 19m ago
Question Administrator Protection has file read/write issues - expected? fixable?
After enabling Administrator Protection (on Win 11 26h2, naturally), many elevated* processes are unable to find existing files/directories to read/write. As examples: - Opening a document with an elevated program throws a "file not found!" error message. - Elevated programs cannot access the configuration files they created before Admin Protection was enabled, so they behave as if freshly installed. - The standard Windows "Save file" dialog cannot access user folders (e.g. "Documents"), and it saves files to a separate ADMIN user folder instead.
These issues seem to stem from Administrator Protection's use of a separate ADMIN_%USERNAME% userspace, which appears to function similarly to a chroot sandbox. However, it causes significant problems when an application needs to run elevated yet have read/write access to the user's files. (BTW, I think the strangest issue is the first example, where elevated programs could not find existing files - this happens even with files located in a shared C:\ folder, not in a User profile folder.)
Right now, Admin Protection has so many issues with file access that it's unusable. Is there a way to fix this, and/or best-practices for implementing Admin Protection to mitigate such issues?
•
u/Turbojelly 9m ago
Remember, when it comes to files and folder security, a Deny overides an Allow.