Solved

Windows terminal service start/stop loop after Citrix XenApp uninstall

Posted on 2012-04-04
17
1,907 Views
Last Modified: 2012-04-11
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
0
Comment
Question by:sdoughty
  • 10
  • 7
17 Comments
 
LVL 59

Assisted Solution

by:Darius Ghassem
Darius Ghassem earned 300 total points
ID: 37807536
Run sfc /scannow
0
 

Author Comment

by:sdoughty
ID: 37807731
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"
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37808185
Now try sfc /scannow and then remove role and role back
0
 

Author Comment

by:sdoughty
ID: 37808400
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
0
 

Author Comment

by:sdoughty
ID: 37812810
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.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37813409
Try restoring to a prior point or getting these files from another server
0
 

Author Comment

by:sdoughty
ID: 37816022
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.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37816197
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?
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:sdoughty
ID: 37816299
Yes can remote out from the server but not into the server. Sorry I automatically think of system restore when you said restore point.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37816359
0
 

Author Comment

by:sdoughty
ID: 37816459
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
Computer:      VNARI02.www.vnari.org
Description:
Faulting application svchost.exe_TermService, version 6.0.6001.18000, time stamp 0x47919291, faulting module unknown, version 0.0.0.0, time stamp 0x00000000, exception code 0xc0000005, fault offset 0x0000000000000000, process id 0x14b0, application start time 0x01cd1174271d600b.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2012-04-03T08:31:23.000Z" />
    <EventRecordID>89799</EventRecordID>
    <Channel>Application</Channel>
    <Computer>VNARI02.www.vnari.org</Computer>
    <Security />
  </System>
  <EventData>
    <Data>svchost.exe_TermService</Data>
    <Data>6.0.6001.18000</Data>
    <Data>47919291</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>c0000005</Data>
    <Data>0000000000000000</Data>
    <Data>14b0</Data>
    <Data>01cd1174271d600b</Data>
  </EventData>
</Event>
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37816479
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?

emulateTernsrv64.dll

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.
0
 

Author Comment

by:sdoughty
ID: 37816689
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.
0
 

Accepted Solution

by:
sdoughty earned 0 total points
ID: 37816909
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.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37817043
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
0
 

Author Comment

by:sdoughty
ID: 37817157
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.
0
 

Author Closing Comment

by:sdoughty
ID: 37831689
dariusg was excellent in helping me work through this problem. Even though I ultimately figured it out myself, his input was extremely valuable.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now