Right-click in the search results and choose Run as administrator .

The majority of "Access Denied" errors occur simply because the user session lacks elevated rights. If you open CMD via the Start menu or search bar, it opens as a standard user by default.

Access Denied.

The "Access Denied" error usually stems from one of three scenarios:

If the Command Prompt fails to open entirely and displays an "Access Denied" alert instantly, your registry may have a key blocking its execution.

Open CMD as Administrator (see Method 1) and type the following command: