Most of the
times, while installing/uninstalling any application, user gets an error as “An error (-5006: 0x80070002) has occurred
while running the setup”. Please refer the below screen shot for the error.
This error generally occurs when terminal
server may not be in the install
mode. To change/switch the server in install mode, please follow the below
process.
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:
- Click Start,
and then click Run.
- In the Open box, type cmd,
and then click OK.
- At the command prompt, type change
user /install, and then press ENTER. The following message
appears:
“User session is ready to install applications.” - Type exit, and then press ENTER.
Now you can add/ remove any application from Control panel.





