[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2018
  • Last Modified:

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
0
sdoughty
Asked:
sdoughty
  • 10
  • 7
2 Solutions
 
Darius GhassemCommented:
Run sfc /scannow
0
 
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"
0
 
Darius GhassemCommented:
Now try sfc /scannow and then remove role and role back
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
0
 
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.
0
 
Darius GhassemCommented:
Try restoring to a prior point or getting these files from another server
0
 
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.
0
 
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?
0
 
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.
0
 
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
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
 
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?

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 10
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now