Sun. Jun 23rd, 2024


Key Takeaways

To fix the system error 5 in Command Prompt or PowerShell, relaunch with admin rights. If the issue occurs while running an app or app installer, launch that software with admin privileges.


Do you get a “System error 5 has occurred. Access is denied” error while running commands in Command Prompt or PowerShell on your Windows 11 or Windows 10 PC? Or, do you see that error while running an app installer or an installed app? Either way, a fix is easy, and we’ll show you how.

Windows’ system error 5 usually occurs when you run your commands or apps without admin rights. The lack of these rights prevents your commands or apps from properly functioning, leading to access denial.


Launch PowerShell or Command Prompt With Admin Rights

If you get a system error 5 in Command Prompt or PowerShell, run those utilities with admin privileges to fix your error.

To do that, first, open your PC’s “Start” menu. Here, find “Command Prompt” or “PowerShell”. Then, right-click your utility and select “Run as Administrator.”

Choose

In the “User Account Control” prompt, select “Yes.”

Your tool is now open with admin rights. Start executing your commands, and you’ll find that they work without any issues.

Make PowerShell or Command Prompt Always Launch as an Admin

If you often run commands that require admin rights, make Windows always launch your Command Prompt or PowerShell utilities as admin. Here, we show you how to make Windows always launch Command Prompt with admin rights, but you can use the same steps for PowerShell.

To start, add Command Prompt’s shortcut to your desktop. Do this by first opening the “Start” menu, finding “Command Prompt”, right-clicking the utility, and selecting “Open File Location.”

Click

On the following screen, right-click “Command Prompt” and select “Open File Location.” Then, right-click “cmd.exe” and choose Show More Options > Send To > Desktop (Create Shortcut).

Select Show More Options > Send To > Desktop (Create Shortcut).

Access your Windows desktop using Windows+D. Here, right-click your newly-created CMD shortcut and choose “Properties.” Select the “Shortcut” tab and click “Advanced.” Turn on the “Run as Administrator” option and choose “OK.” Then, select “Apply” followed by “OK.”

Enable

From now on, each time you launch your utility using your desktop shortcut, Windows will run it with admin privileges.

Related: How to Open Powershell With Admin Privileges From CMD

Launch Your App or App Installer as an Administrator

If you get the above error while running an app or app installer, run your item with Windows’ admin rights to possibly fix your issue.

To do that, right-click your app or app installer and choose “Run as Administrator.”

Select

In the “User Account Control” prompt, select “Yes.”

Your app or app installer will launch with admin rights.

Make Your Regular User Account an Admin Account

If you often encounter the above errors while performing tasks on your PC, turn your standard user account into an admin account in Windows. This lets you grant your apps and commands all the privileges they need to function on your computer.

We’ve written a guide on that topic, so check that out to learn how to convert your standard account into an admin account on Windows.

Tip: Disable User Account Control (UAC) Prompts

You’ve probably noticed that each time you run an item with admin rights, Windows displays a “User Account Control” prompt asking you to confirm your action. If you often run your items with admin privileges, and you don’t want this prompt popping-up every time, then turn it off.

We have a guide showing you how to turn off User Account Control (UAC) prompt on Windows 11 and 10, so check that out to learn how to perform the procedure. Later, if you decide to bring the prompt back, you can do so.


And that’s how you get around a system error 5 on a Windows 11 or Windows 10 PC. Happy using your computer!

Related: What Does “Run as Administrator” Mean in Windows 10?



Source link

By John P.

Leave a Reply

Your email address will not be published. Required fields are marked *