Citrix XenApp

Citrix console failed to remove the server from the farm with error code 80000007


Had to clean up a Presentation Server 4.0 farm today. Yes you heard that right, PS 4.0. Yuck. Lots of servers that were decommed but never removed from the farm. I needed to eliminate the junk and see what was really going on with this farm and get the apps migrated to XenApp 7.6. So basically I had a bunch of dead servers that needed to be removed from the farm by force before I could proceed with my analysis of the good apps that were left. If you go through the console and try and remove the each server one by one, you would get this message:

The Presentation Server Console failed to remove the server. Error Code: 80000007


Do the following via command line:


you will see it’s a member of the farm.

So let’s hit the data store and kill it. Do a:

dscheck /full servers /clean

servers will remain most likely since you verified with the qfarm it’s not really an inconsistent record and technically valid. The only option is to forcefully delete it:

dscheck /full servers /deletemf SERVERNAME

Keep in mind the SERVERNAME is case sensitive so when you do a qfarm and the server name is all capital letters, you must type it in as all capital letters. Now do the clean command again:

dscheck /full servers /clean

Now when you reopen the console and do a discovery, the server will be gone for good.

About Jason Samuel

Jason Samuel lives in Houston, TX with a primary focus on strategic advisory and architecture of end-user computing, security, enterprise mobility, virtualization, and cloud technologies from Citrix, Microsoft, & VMware. He also has an extensive background in web architecture and networking over his 20+ year career in IT. He is an Author, Speaker, and Local User Group Community Leader. He is certified in several technologies and is 1 of 63 people globally that is a recipient of the prestigious Citrix Technology Professional (CTP) award. He is 1 of 42 people in the world that has been awarded as a VMware EUC Champion and VMware vExpert. He is a featured author on DABCC which provides the latest IT Community News on Cloud, Data Center, Desktop, Mobility, Security, Storage, & Virtualization. In his spare time Jason enjoys writing how-to articles and evangelizing the technologies he works with. Disclaimer: The content and opinions expressed in articles and posts are his own and are by no means associated with his employer.

Recommended for you

Leave a Reply

Your email address will not be published.