• Posted by: admin
  • Category: Blog

An error (-5006: 0x80070002) has occurred while running the setup

Many times, while installing/uninstalling any application, a user gets an error as “An error (-5006: 0x80070002) has occurred while running the setup”. Please refer the below screenshot for the error.

This error generally occurs when the terminal server may not be in the install mode. To change/switch the server to install mode, please follow the below steps.

To Switch Terminal Services to Install Mode
When you want to add or remove programs, put the Terminal Services server in Install mode. To do this:

  1. Click Start -> Run.
  2. In the Open box, type cmd, and then click OK.
  3. At the command prompt, type change user /install, and then press ENTER. The following message appears:
    User session is ready to install applications.
  4. Type exit, and then press ENTER.
    Now you can add/ remove any application from Control Panel.
Author: admin

Leave a Reply to Shem Sinkala Cancel reply

3 Comments