If you are receiving "Access Denied" errors, it usually means you are trying to modify something that shouldn't be modified. Windows 11 is designed to protect these files to ensure the operating system remains stable.
DISM /restorehealthThe industry gold standard is not to disable TrustedInstaller, but to of a specific file or folder, perform your action, and then revert ownership. This is safe, reversible, and respects Windows 11’s security architecture. trusted installer windows 11 best
“Don’t,” she said. “Trust the installer. It’s the only thing in Windows that actually trusts you less —and that’s why it works.” TrustedInstaller in Windows 11 — Overview and Best