Windows 7 64 Bit Remote Desktop Access Breaks Daily - Fix, Repair, Troubleshoot

Hello,

My computer has Windows 7 64 bit with remote desktop enabled.  After I reboot this computer I can usually remote desktop into it fine for most of that day.  By the next morning, it will no longer let me remote desktop into it.  I have attached screen shots to show my remote desktop setting, 3389 firewall ports opened and remote services running.  I also have a vm ware install with Windows 7 install on the vm ware  software and if I launch it I can connect to the vmware windows 7 remote desktop but just not to the host machine, so it seems that the network would have to be working fine for that to happen.  Does anyone know how I can resolve this without reformatting my computer and starting from scratch?  Also, if I try to restart the remote desktop services once it stops working it gives an error and doesn't restart them. If I then reboot my computer it will let me remote desktop in again for a short period and then will lock me out again.  If I run netstat -a from the command prompt it shows the following regarding port 3389.
  TCP    [::]:3389              MyPCName:0          LISTENING
  TCP    192.168.1.4:3389       192.168.1.105:50106    ESTABLISHED

Thanks in advance,
Shawn
remotedesktop.png
firewallports.png
RemoteServices.png
smowerAsked:
Who is Participating?
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.

Frank McCourryV.P. Holland Computers, Inc.Commented:
What is the error you get when trying to restart the remote desktop service?  Are there any errors in the event log?
0
smowerAuthor Commented:
It says "Windows could not stop the Remote Desktop Services service on Local Computer.

Error 1053: The service did not respond to the start or control request in a timely fashion.  When I look in the Event Viewer under the folder Windows Logs under Application and System, I don't see any errors related to the process but their is an information box that says
"The Remote Desktop Services UserMode Port Redirector service entered the stopped state."
"The Application Experience service entered the stopped state."
"The Windows Image Acquisition (WIA) service entered the running state."

The Remote Desktop Services just goes into a permanent state "Stopping" and either does not give an option or grays out the restart or start options.

If I try to restart the Remote Desktop Services UserMode Port Redirector it says:

"Windows could not start the Remote Desktop Services UserMode Port Redirector service on Local Computer.

Error 1068: The dependency service or group failed to start."

Thank you for looking into this.

Thanks,
Shawn
0
jmanishbabuCommented:
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Frank McCourryV.P. Holland Computers, Inc.Commented:
Error 1068: The dependency service or group failed to start." is your key.  Go into services and find the Remote Desktop Services UserMode Port Redirector service.  Right click and go to properties then check the dependencies tab.  See if everything listed is running.
0
smowerAuthor Commented:
Hey frankmcc,

It says "Remote Desktop Services UserMode Port Redirector service" dependencies are
Remote Desktop Services
Terminal Server Device Redirector Driver

We already know Remote Desktop Services is not running since we just killed it under services for testing.  Unfortunately when it is killed it goes into a permanent stopping state until I reboot my computer.  Also,  I believe that error only happened since we manually told services to kill the two services.

Hey jmanishbabu,
I downloaded the process explorer however in the svchost.exe section I don't see
-k termsvcs.  Also I noticed that program says it is for Windows 2003 and I am on Windows 7 64 bit.  I tried to restart another process to see how it works and it eventually says "Error opening process: Access is denied.

In Windows Task Manager under the Services tab I see the TermService Name with status Stopping. If I right click on it and chose stop it says unable to stop service - access is denied.
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
Try this from a command line:
1 Find the process ID:
                  tasklist /SVC /FI "Services eq termsvcs"

2 Use Taskkill to kill the Process
taskkill /PID <ProcessID> /F

Make sure you start your cmd windows with elevated privledges.
0
smowerAuthor Commented:
So on the first step when I run cmd as administrator I get
"C:\Windows\system32>tasklist /SVC /FI "Services eq termsvcs"
INFO: No tasks are running which match the specified criteria.

On the process explorer program from sysinternals I tried restarting it by right clicking and choosing run as administrator and then it gets past the permission issues, however it doesn't seem to show termsvcs either.  I wonder if termsvcs is for a different version of Windows and if Windows 7 64 bit calls it something different?  

For example in the Services box if I right click Remote Desktop Services and pick properties it shows path to executable as "C:\Windows\System32\svchost.exe -k NetworkService"
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
NetworkService is the username used to start the service.  The Service name is "TermService"

Try this:

tasklist /SVC /FI "Services eq TermService"
0
smowerAuthor Commented:
Ok. Using the service name TermService allowed me to find and kill that service when I run the command prompt as administrator.  Unfortunately, before I did that I had to reboot my computer because I messed up some stuff killing processes in my testing prior, so I need to see if that command will kill it when it starts misbehaving again.

The other main problem I have is that often when I need to use remote desktop I am not at my computer so I don't know how I would get that service command to kill and restart remotely?
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
If you have a VPN or are diectly connected you can use PS Tools from Sysinternals to run the command remotely .  http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx

Have you thought about using TeamViewer, logmein or the like?  I find them to be more reliable.
0

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
smowerAuthor Commented:
Thank you.  I have generally had pretty good success with remote desktop in the past and have liked how it is native and free so I haven't considered the other solutions too much.  Is there anyway to fix my current so it is reliable and doesn't go out every day? Is it possible to uninstall and reinstall just remote desktop?

Thanks,
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
Open "System" in the Control Panel
Click on Remote Settings
Click "Remote" tab.
Select "Don't allow connections to this computer"
Restart your Computer
Open "System" in the Control Panel
Click on Remote Settings
Click "Remote" tab.
Select "Allow connections from * (Either one is Ok, I prefer to allow from any version, just in case)"
Restart Again

If this fails, this aicle may help:  http://social.technet.microsoft.com/Forums/windows/en-US/5fa4bf1f-5c79-4d84-939f-89aadd28954a/problems-with-rdp-on-windows-7-host-how-do-you-reinstall-remote-desktop-services
0
smowerAuthor Commented:
Thank you. I have now disabled it, rebooted it and then re-enabled and rebooted it.  It almost always works for a period after I reboot.  I will have to see if it is still working tomorrow or after enough time has passed.  I haven't tried removing the certificate.  It said it is good until 2014.  Could a certificate issue allow it to connect sometimes and not others? Wouldn't it make it always not connect?

Thanks,
0
smowerAuthor Commented:
Ok. So it stopped working again this afternoon.  So when it stopped working I tried killing the process from the command line with elevated privileges and was able to get the Remote Desktop Process to Kill without error.  I then restarted it, however it still does not allow me to remote desktop in.  I tried toggling remote desktop on and off again which didn't work.  I also tried using the process explorer tool to kill the process and then I re-enabled the process and I still couldn't log in to remote desktop.  I can't seem to find related errors in the event viewer under system or application logs.  Am I looking in the wrong place?
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
Do you have any kind of firewall running on this machine?  Is there another application listening on this port?  

Barring those items, I think you may be reloading the OS.  Wish I had better news.

If everything else is Ok and RDP is your only problem, I would seriously consider using a product like Team Viewer to solve you problem.
0
smowerAuthor Commented:
Thank you for your help and insight.
I do have a firewall running on this machine.  Yesterday when remote desktop wasn't working I turned off the firewall and tried to connect and it still wouldn't connect.

I have wondered if one of the applications I open turns it off or something.

 Is there an easy way to tell if there is another application listening on this port?

Thanks,
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
netstat -a -b will reveal it.  Run this after RDP quits.  The -b switch will tell you the name of the executable that is using that port.
0
smowerAuthor Commented:
Thank you.  Amazingly enough Remote Desktop hasn't gone out on me since your last comment so I still tried the netstat -a -b command.  I then did a search for port 3389.

 It said

"Can not obtain ownership information
  RpcSs
 [svchost.exe]
  TCP    [::]:445               SysAdmin-PC:0          LISTENING
 Can not obtain ownership information
  TCP    [::]:3389              SysAdmin-PC:0          LISTENING
  CryptSvc
 [svchost.exe]
  TCP    [::]:5357              SysAdmin-PC:0          LISTENING'

Is there anything else I should be searching for?

Thank you
0
Frank McCourryV.P. Holland Computers, Inc.Commented:
I think you'll be Ok now.  It may be that you needed another restart after the last time you re-enabled RDP.

Your Netstat looks good, there is only one service running on port 3389 so RDP will not shutdown because of another application using the same port.  

I can't think of anything else you can check.  Let it run for a few days and see if it remains stable.
0
smowerAuthor Commented:
Sounds good.  I hope it is truly fixed.
0
smowerAuthor Commented:
Ok. So it went out again today:

The netstat command seems to say the same thing as before

RpcSs
 [svchost.exe]
  TCP    [::]:445               SysAdmin-PC:0          LISTENING
 Can not obtain ownership information
  TCP    [::]:3389              SysAdmin-PC:0          LISTENING
  CryptSvc
 [svchost.exe]
  TCP    [::]:5357              SysAdmin-PC:0          LISTENING

At least we made it for a longer period before it went out.
0
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
0
smowerAuthor Commented:
Is there a way to reward certain users for their time even though their solutions didn't solve the problem?
0
smowerAuthor Commented:
The problem was never solved.  I guess the standard answer of don't use Microsoft but use something else seems to be the recommended solution unless you want to reinstall your computer from scratch.
0
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
Remote Access

From novice to tech pro — start learning today.