Cleaning out the debris caused by the hosts file


i have made entries in the hosts file to be used for remote desktop.

certain entries previously made in host are no longer used.
they are now a nuisance, for when we use remote desktop, they all still show them self.
they must be in the registry somewhere...

how do i delete them from RDP choices of available computers?

using both windows 7 and 8 computers

Any help appreciated.
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.

They are not in the registry, no. Ipconfig /flusdns
intelogentAuthor Commented:
is that command suppose to be run from dos?
how do i get to it
winkey+r opens the run prompt. Type cmd, hit enter. Now fire that command.
PS: there's no DOS in Windows 32 bit any more.
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.

Guy LidbetterCommented:
Hi There,

The entry is in your DNS Cache, not the registry if you have deleted it from teh hosts file.

Go to the search bar, in windows 7, i.e. click start then type CMD. in Windows 8 push the Windows Key and type cmd. That will bring up the Command Prompt Window.

Then type in McKnife's command
ipconfig /flushdns

Open in new window

This will remove any cached entries.
If you open the registry editor by running regedit.exe, you could use the search to find what it is that you would like to remove.  Once you are in the registry editor, press "Control + F" or in the menu under: "Edit..." select: "Find..."

If the item you are wanting to remove is "" then search for "" to find it.

In my registry, the values you are looking for are located here:
HKEY_USER\Software\Microsoft\Terminal Server Client\Default\

After you delete all the references, you may need to reboot your computer.
I think the OP has confused DNS / stored names in host file with the remembered RDP connections list.  They're not at all the same thing.  To answer your question - to clear out the list of RDP choices left behind after successfully connecting, look here:

Open the registry (REGEDIT from start, run - or Winkey+R)

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

You'll see the entries listed there.  Delete the ones you want removed.

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
Guy LidbetterCommented:
AAH!! What Tim said!! Yeah... I misread that
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
Windows 7

From novice to tech pro — start learning today.