Windows terminal service start/stop loop after Citrix XenApp uninstall

I had to uninstall Citrix XenApp 5 from a Windows Server 2008 64 bit machine. After the uninstall of Citrix, Windows Terminal Services service is in a start/stop loop. If I try to access remote desktop setings on the server I get an error message, "This application has failed to start because cutildll64.dll was not found". This is a Citrix file. It is not there because Citrix is uninstalled. Any ideas on getting Windows Terminal Services running again?

Thanks in advance for any help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Darius GhassemCommented:
Run sfc /scannow
sdoughtyAuthor Commented:
Ran sfc /scannow. Now when I go to access select users in remote desktop configuration I get error message "This application has failed to start because emulateTernsrv64.dll was not found"
Darius GhassemCommented:
Now try sfc /scannow and then remove role and role back
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

sdoughtyAuthor Commented:
Role has been removed already. I will run sfc /scannow again and try adding role back.

I'll let you know how I make out. Thanks for the help
sdoughtyAuthor Commented:
Reinstalled the Terminal Services role. Install went successfully, however, when I try to start the service, it goes into a start/stop loop. I can access remote desktop conguration to add users without getting the errors cannot find cutildll64.dll or emulateTernsrv64.dll but that was only adding these files to Windows/system32 directory. Still cannot access the server via reote desktop.

Any other ideas from anyone? This all happened after uninstalling Citrix XenApp 5.
Darius GhassemCommented:
Try restoring to a prior point or getting these files from another server
sdoughtyAuthor Commented:
System restore is not included with Windows Server 2008 and I have put these files in the Windows\System32 directory, that is how the error messages went away in the remote desktop config area of Computer properties. Terminals Services service still goes into a start/stop loop and I still cannot access the server via remote desktop but I can remote to another machine from the server. I guess this is what I get for uninstalling XenApp.
Darius GhassemCommented:
Restoring from a prior point means restoring a backup from a prior point.

Alright you were able to remote out but you can't remote in?
sdoughtyAuthor Commented:
Yes can remote out from the server but not into the server. Sorry I automatically think of system restore when you said restore point.
sdoughtyAuthor Commented:
Thanks but I found that link already and have done all the above. One problem, no matter what I do, is I cannot keep the Ter Service running. When I start it, it loops on and off continuously and I get event log errors like below.

Log Name:      Application
Source:        Application Error
Date:          4/3/2012 4:31:23 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Faulting application svchost.exe_TermService, version 6.0.6001.18000, time stamp 0x47919291, faulting module unknown, version, time stamp 0x00000000, exception code 0xc0000005, fault offset 0x0000000000000000, process id 0x14b0, application start time 0x01cd1174271d600b.
Event Xml:
<Event xmlns="">
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <TimeCreated SystemTime="2012-04-03T08:31:23.000Z" />
    <Security />
Darius GhassemCommented:
Honestly that error really doesn't point you to the problem. You have corruption with the files. Sfc /scannow should fix the problem but if it doesn't then a reinstall is usually next step.

You are getting this error still?


You copied this over but still the error, right?

Did you re-register the .dll

The 64-bit version is %systemroot%\System32\regsvr32.exe.
The 32-bit version is %systemroot%\SysWoW64\regsvr32.exe.
sdoughtyAuthor Commented:
No I am not getting the errors when trying to access the remote desktop configuration in system properties anymore after placing the files in the Windows\Syetem32 directory.

I get an error when rergistering the files that the module was loaded but the entry point DllRegisterServer was not found.

Everything on the server is running fine except for terminal services. I have sharepoint on it and no problems since.

I can ping it but also cannot telnet to it on any port.
sdoughtyAuthor Commented:
dariusg, thank you for your help in mucking through this with me. I have it working again.

Citrix, evidently, modifies, adds and overwrites the Windows terminal services and RDP registry entries. I compared what was in the registry to a 2008 VM server I have and found the differences. I made the modifications manually and now all is back to normal, at least it appears to be.

The Citrix uninstall did not revert the registry settings back to the Microsoft settings. Unfortunately all the error messages were leading away from the registry making it difficult to diagnose.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Darius GhassemCommented:
I'm glad you got it working!

I thought we went through the registry keys but I guess we didn't. Either you would assume a uninstall and reinstall of RDS work reconfigure registry
sdoughtyAuthor Commented:
Yes one would think that the uninstall would have taken care of the registry but live and learn. Anyway thanks for your help and I have given points for all your hard work.
sdoughtyAuthor Commented:
dariusg was excellent in helping me work through this problem. Even though I ultimately figured it out myself, his input was extremely valuable.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.