- What Does the “ShellExecuteEx Failed; Code Error 8235. A Referral Was Returned from the Server” Error Mean?
- How to Resolve the ShellExecuteEx Failed Error
- Use Administrator Permissions
- Grant the Program Admin Privileges
- Adjust UAC Settings
- Log In to the Hidden Administrator Account and Install the Program
- The steps below will show you how to do that:
- Make the File’s Signature a Trusted One
- Uninstall Problematic Windows Updates
- Make Changes to the System Registry
- Now, follow these steps to apply the changes:
- Restore Your System
- The following steps will guide you:
- Conclusion
The “ShellExecuteEx Failed; code 8235” error usually comes with the “A referral was returned from the server” message. You may encounter this error when you try to install a program or open an application.
What Does the “ShellExecuteEx Failed; Code Error 8235. A Referral Was Returned from the Server” Error Mean?
This error message is an indication that some security policies are preventing you from performing a certain action. The policies might be some default restrictions or some adjustments made via an update, for example. The problem may also reside with the program or setup that you’re working with.
In this article, you’ll learn how to fix the ShellExecuteEx Failed error.
How to Resolve the ShellExecuteEx Failed Error
To get rid of the problem, you’ll have to make sure the file or program you’re working with isn’t denied access because it doesn’t have the required privileges. In this article, you’ll find out how to relax certain restrictions and remove roadblocks that shouldn’t be there.
Follow the solutions below one after the other and in the order that we have arranged them.
Use Administrator Permissions
If you’re experiencing the error whenever you want to install a program, right-click on the installer and select Run as Administrator. Click on the Yes option once the User Account Control dialog window pops up.
The installer might require permission to write files to some protected system directories. Make sure you’re logged into an administrator account before you perform this operation. Also, it’s important that you verify the legitimacy of the installer you’re about to run, as granting a malicious program admin access can wreak havoc that your PC might not recover from.
Grant the Program Admin Privileges
If the error keeps showing up whenever you try to launch a program, then grant it admin privileges. Windows might be blocking the application from accessing certain system files that it needs to run properly.
You can either right-click on the program and select Run as Administrator any time you want to open it or make changes to its properties. These steps will show you how to prompt Windows to run the program as an administrator whenever you launch it:
- Launch a File Explorer window and navigate to the installation folder of the program.
- Locate its executable file, right-click on it, and then click on Properties.
- If you have a desktop shortcut to the exe file, right-click it and click on Properties.
- If there is no desktop shortcut to the file and you don’t know how to locate it, follow these steps:
- Open the Start menu and search for the program.
- Once it appears in the results list, right-click it, hover your mouse pointer over More, and then select Open File Location.
- You’ll be taken to a folder where you’ll see the program’s Start menu shortcut.
- Right-click on the shortcut and select Open File Location.
- The program’s installation folder will now appear.
- You can now right-click on its executable file and select Properties.
- After the Properties window opens, go to the Compatibility tab.
- Click on the “Change settings for all users” button.
- On the next dialog window, check the box for “Run this program as an administrator”, and then click on the OK button.
- You can now run the program and check whether the error message appears again.
Adjust UAC Settings
The error message could be popping up because your current UAC policy is too stringent. The highest security policy prompts Windows to scrutinize and block operations that you might consider basic.
While it’s important that you maintain a reasonable level of security for your system, you can relax some tough measures to prevent issues like this from needlessly occurring. The following steps will show you how to lower your UAC policy:
- Right-click the Start button and select Run or press the Windows and R keys together to launch the Run dialog box.
- After Run opens, type “Control Panel” (don’t add the quotes) into the text field, and then click on the OK button.
- Once the Control Panel window opens, click on User Accounts.
- Click on User Accounts again on the next page.
- Next, click on “Change User Account Control settings”.
- Now, on User Account Control’s Settings window, drag the slider down a step or two from Always Notify towards Never Notify. The box to the right will describe the security level for you.
- Click on the OK button, and then go back to check whether the problem persists.
Log In to the Hidden Administrator Account and Install the Program
If you’re experiencing the issue with a single executable file, then you can resolve it by signing in to the hidden admin account, which has higher privileges. You’ll have to activate the account via the Command Prompt utility. We recommend that you open Command Prompt from the Windows Recovery Environment.
The steps below will show you how to do that:
- Press and hold your power button to force your PC to shut down.
- Turn on the computer and force it to shut down again after the logo of your system’s manufacturer shows up.
- Repeat Step 2 twice and you’ll see the “Please wait” message.
- On the Automatic Repair screen, click on the Advanced Options button.
- On the Choose an Option screen, click on Troubleshoot.
- Now, click on Advanced Options under Troubleshoot, and then click on Command Prompt.
- Once the Command Prompt loads, type in the following and hit Enter:
Net user administrator /active:yes
- Restart your PC, log in to the admin account, and then try performing the operation.
Make the File’s Signature a Trusted One
You can let Windows know that the executable file that you want to run or install is legitimate by adding its signature as a trusted signature. While this process is a bit complicated, some users have confirmed that it worked for them. So, carefully follow these steps to apply the fix:
- Launch a File Explorer window and navigate to the installation folder of the program.
- Locate its executable file, right-click on it, and then click on Properties.
- If you have a desktop shortcut to the exe file, right-click it and click on Properties.
- If there is no such shortcut and you don’t know how to locate the file, follow these steps:
- Open the Start menu and search for the program.
- Once it shows up in the results list, right-click it, hover your mouse pointer over More, and then select Open File Location.
- You’ll be taken to a folder where you’ll see the program’s Start menu shortcut.
- Right-click on the shortcut and select Open File Location.
- The program’s installation folder will now appear.
- You can now right-click on its executable file and select Properties.
- After the Properties window opens, go to the Digital Signatures tab.
- Click on the signature under Signature List, then click on Details.
- Under Signer Information, click on View Certificate.
- On the next page, click on Install Certificate, and then click on Next.
- Once you get to the Certificate Import wizard, select “Place all certificates in the following store”, and then click on the Browse button. Write down the name of this certificate, as you’ll need it in the next step.
- Now, choose the Trusted Root Certification Authorities option, and then click OK.
- Click Next.
- Click Finish.
- You can now run the program and check whether the error persists.
You can take things further so that Windows won’t flag the program in the future. Follow these steps:
- Open the Run dialog box by right-clicking the Start button and selecting Run from the Power User menu.
- Once Run opens, type “mmc” (no quotes) into the text field, and then click on OK.
- Click on Yes in the User Account Control dialog that pops up.
- After the Microsoft Management Console opens, click on File in the top-left corner of the window.
- Select “Add/remove snap-ins” once the context menu drops down.
- Once the “Add or remove snap-ins” window opens, navigate to the left pane and click on Certificates under Available Snap-Ins.
- Click on the Add button, and then click on OK.
- Now, on the main MMC interface, right-click on Certificates and click on Find Certificates.
- Enter the name of the certificate you wrote down earlier and click on the Find Now button.
- When you see the certificate, right-click it, and then select Properties.
- Switch to the General tab and select “Enable only the following purposes”.
- Uncheck every other box save the one for “Code Signing”.
- That should do it! You can now check whether the error persists.
Uninstall Problematic Windows Updates
If you started seeing the problem after updating your system, try uninstalling the update. Microsoft updates may even cause conflicts that prompt the company to undo them. While issues like these are hardly widespread, they happen in unique situations.
If you don’t know how to uninstall an update, follow these steps:
- Right-click on the Start button and select Settings.
- After the Settings application opens, click on Update & Security.
- Once the Update & Security interface opens, switch to the Windows Update page and click on View Update History.
- Take note of the KB number of the last update you installed before the problem started showing up.
- Now, go to the top of the window and click on Uninstall Updates.
- You’ll be taken to the Control Panel’s Programs and Features window. Locate the KB, click on it, and then click on Uninstall.
- Follow the subsequent instructions until the process is complete.
- Restart your system and check whether the error shows up again.
Make Changes to the System Registry
You can use this workaround to instruct Windows to allow certain executable files that aren’t signed and validated.
However, before you start, make sure you back up the system registry so that you can recover it if anything goes wrong. So, follow these steps:
- Press the Windows and R keyboard buttons together to open the Run dialog window.
- After Run opens, type “regedit” (no quotes), and then hit the Enter key.
- Click on Yes in the User Account Control dialog window.
- Once the Registry Editor opens, click on File, then select Export from the menu.
- Select the folder where you’d like to save the file, enter the name of the file, select All under Export Range, and then click on Save.
- Whenever you want to recover your registry to undo the changes you made, open the Registry Editor, click on File, and then select Import. Navigate to the folder where you saved the backup file and double-click it.
Now, follow these steps to apply the changes:
- Go to the left pane of the Registry Editor and expand the HKEY_LOCAL_MACHINE folder.
- Expand SOFTWARE.
- Under SOFTWARE, navigate to Microsoft and expand it.
- Next, expand Windows, and then look for the CurrentVersion folder and open it.
- Head to Policies, and then single-click on System.
- Head to the right side of the window and double-click on ValidateAdminSignatures.
- Now, set Value data to 0.
- Restart your system and check whether the problem is resolved.
You can also apply the same setting using the Group Policy Editor if you use Windows 10 Pro or Enterprise. Follow these steps:
- Press the Windows and R keyboard buttons together to open the Run dialog window.
- After Run opens, type “gpedit.msc” (no quotes), and then hit the Enter key.
- After the Group Policy Editor opens, go to the left pane and expand Windows Settings under Computer Configuration.
- After that, head to Security Settings and expand it.
- Expand Local Policies.
- Go to Security Options and click on it.
- Navigate to the middle pane, scroll down to “User Account Control: Only elevate executables that are signed and validated” and double-click it.
- On the next dialog window, select Disabled, and then click OK.
- The problem should now be resolved.
Restore Your System
If you were able to run the program in the past without seeing the error, then it’s possible that some changes made to your system might be the cause of the issue. These changes could be installing or uninstalling drivers and third-party programs. To resolve the issue, take your system back to an earlier date when everything worked fine.
The following steps will guide you:
- Right-click on the Start button or press the Windows and E keyboard buttons together to open the File Explorer window.
- After File Explorer opens, go to the left pane, right-click on This PC, and then click on Properties.
- After the System window opens, go to the left pane and click on System Protection.
Note: In new Windows 10 builds, you’ll be taken to the Settings application’s About page. Go to the right pane and click on System Protection.
- Click on System Restore once you see the System Protection tab of the System Properties dialog.
- Click on Next once the first page of the wizard opens.
- Now, select a restore point and click on Next.
- Click Finish and allow the tool to do the job.
- Run the program or installer and check whether the “A referral was returned from the server” error shows up again.
Conclusion
If you have any questions about the “ShellExecuteEx Failed; error code 8235” problem or can’t resolve the issue, leave a comment below.
You can always keep your system running smoothly by installing Auslogics BoostSpeed, which will eliminate bad registry keys and harmful junk files.