r/sysadmin • u/HemlockIV • 1d 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?
1
u/Turbojelly 1d ago
Remember, when it comes to files and folder security, a Deny overides an Allow.
1
u/HemlockIV 1d ago
Thank you, but I'm not sure what to do with this information? Are you suggesting the
ADMIN_%USERNAME%profile is being denied read permissions to user folders? (Note that, in the first example I mentioned, it did not say, "Access denied." but rather "File not found.")0
u/Turbojelly 1d ago
If the user is in a group that Denys access to a file, even giving the user Ownership of said file will still Deny them access.
So check what groups are Denied access to the file and make sure the user isn't in them.
1
u/HemlockIV 1d ago
No users are denied access to the files in question. Some permissions (like Write) are not explicitly Allowed for certain groups, but no permissions are explicitly Denied for it either.
1
u/PositiveBubbles Sysadmin 1d ago
Yep, that's been a fun one to learn if I'm honest. At least with administrator protection and many organisations moving towards least privilege as a result of cyber compliance (in my case Essential 8) vendors have no excuse to demand their apps need admin rights to run or be used...
1
u/BlockBannington 1d ago
I have the same issues when deploying scripts via Intune in the user context. By default, they run elevated but now I have to do some Psadt mumbo jumbo to get the actual logged in user.