If you get the following error on a Windows Server (possibly desktop client), you can use the local group policy editor to resolve this. It commonly impacts Server 2019 systems promoted to a domain controller wherein the UAC admin approval mode is reset and does not contain a value (Enabled or Disabled).
Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.
Security Settings / Local Policies / Security Options / User Account Control: Admin Approval Mode for the Built-in Administrator account.