Home  >  Article  >  How to remove an IP address from Remote Desktop connection history

How to remove an IP address from Remote Desktop connection history

王林
王林forward
2023-04-13 16:37:035578browse

Remote Desktop Connection or RDC stores your previous remote desktop connection information. This is a great feature because you don't have to enter the IP address, username repeatedly. However, this can also get you into trouble if you have multiple remote connections connected. You can't even delete these credentials from the RDC panel itself as there isn't any direct option available! In this article, we show you how to remove old IP addresses from RDC.

How to remove an IP address from Remote Desktop connection history

Fix 1 – Use Registry Editor

You can use Registry Editor to find and delete the value associated with an IP address.

1. Press the Windows key once and enter "regedit".

2. Next, just click "Registry Editor" once in the search results.

How to remove an IP address from Remote Desktop connection history

NOTE ——

Registry editing is dangerous to your system and may sometimes lead to fatal errors. You should always create a registry backup before performing registry edits. Just follow these steps -

a. After opening the Registry Editor, click "File" in the menu bar, and then click the "Export..." option.

Bay. Now, just save this backup in a safe location.

How to remove an IP address from Remote Desktop connection history

3. Go like this in the left pane -

HKEY_CURRENT_USER\Software\Microsoft\Terminal Servers Client\Default

4. On the right side you will notice several MRUs Binary value.

5. Simply select all MRU values ​​except "Default" value and press the "Delete" key on your keyboard All values ​​will be deleted.

How to remove an IP address from Remote Desktop connection history

#6. Now, proceed to the next step and you will notice another subkey "Server" in the left pane.

7. Simply right-click on the key and click "Delete" to delete it. This will delete every entry in that subkey.

How to remove an IP address from Remote Desktop connection history

8. The one thing left to do is to recreate the deleted subkey.

9. So just right click on "Terminal Server Client" and click on "New" and "Key>" Create a key.

10. Name it "Server".

How to remove an IP address from Remote Desktop connection history

After completing all these operations, close the Registry Editor page.

11. Now, open File Explorer.

12. Click on the " Documents " folder to access it.

13. Once you are there, just click on the "View" tab and click on "Hidden Items>" and then further click on "Hide s project".

How to remove an IP address from Remote Desktop connection history

14. Once you find it, select the " Default.rdp " file and click the " Delete " icon on the bin icon to remove it from deleted from the system.

How to remove an IP address from Remote Desktop connection history

# After that, close everything and reboot the system. Check if this works for you.

Fix 2 – Create and use a batch file

If you don’t want to go into Registry Editor, you can create and use a batch file to clean up IP addresses.

[NOTE– We have created and uploaded the batch file for you. So if you just want to download and run the file, scroll down to the bottom of the post to find more instructions. ]

1. Use the search box to search for "Notepad".

2. Click "Notepad" that appears in the search results.

How to remove an IP address from Remote Desktop connection history

#3. On the Notepad page, copy and paste these lines.

回声reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /freg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f注册添加“HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers”cd %userprofile%\documents\属性 Default.rdp -s -h删除默认.rdpecho "IP 地址已从远程桌面连接中删除,请按任意键继续"暂停

4. Just click on "File" on the menu bar and then click on the "Save as" option.

How to remove an IP address from Remote Desktop connection history

5. Now, before you make any changes, set "Files of type:" to "All files".

6. Name it "IPremover.bat".

7. Select an appropriate location to store the file (eg - Desktop) and click on "Save" to save the file on your system.

How to remove an IP address from Remote Desktop connection history

保存文件后,只需关闭记事本窗口即可。

8. 只需转到保存批处理文件的位置。

9. 右键单击​​批处理文件并点击“以管理员身份运行”以管理员权限运行批处理文件。

How to remove an IP address from Remote Desktop connection history

这将在您的系统上运行批处理文件。完成后,打开远程桌面连接面板并检查是否成功。

注意——

如果您不想创建批处理文件,请按照以下步骤操作。

1. 在您的系统上下载IPRemover文件。

2. 现在,您可以将 zip 文件解压缩到您想要的任何位置。

How to remove an IP address from Remote Desktop connection history

3.只需右键单击“ IPRemover ”并点击“以管理员身份运行”。

How to remove an IP address from Remote Desktop connection history-1

这样,您可以在系统上执行批处理文件。

修复 3 – 运行 PowerShell 命令

如果前两种方法都失败了,你可以运行这些 powershell 命令来尝试同样的事情。

1. 按 Windows 键并开始输入“ powershell ”。

2、当你看到“ Windows PowerShell ”出现在搜索结果中时,只需右键点击它并单击“以管理员身份运行”即可运行powershell。

How to remove an IP address from Remote Desktop connection history

3. 然后,将这些代码复制粘贴到终端并按Enter

Get-ChildItem "HKCU:\Software\Microsoft\Terminal Server Client" -Recurse | Remove-ItemProperty -Name UsernameHint -Ea 0Remove-Item -Path 'HKCU:\Software\Microsoft\Terminal Server Client\servers' -Recurse 2>&1 | 外空Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Terminal Server Client\Default' 'MR*' 2>&1 | 外空$docs = [环境]::getfolderpath("mydocuments") + '\Default.rdp'删除项目 $docs -Force 2>&1 | 外空

How to remove an IP address from Remote Desktop connection history

运行此代码后,关闭 PowerShell 屏幕。然后,重新启动系统。

修复 4 – 从 Windows 凭据中删除

您还可以使用 Windows 凭据管理器删除旧的 IP 凭据。

1. 只需右键点击任务栏上的 Windows 图标,然后点击“运行”。

2. 然后,粘贴这些术语并按Enter

控制/名称 Microsoft.CredentialManager

How to remove an IP address from Remote Desktop connection history

3. 当凭据管理器页面打开时,单击“ Windows 凭据”进行管理。

4. 在这里,您会发现列出的几个凭据。展开“通用凭证”。

您在此系统上注册的所有远程连接都存储在这里。因此,请一一检查所有凭据并查找您不想要的那些 RDC 凭据。

5. 现在,单击“删除”以删除凭据。

How to remove an IP address from Remote Desktop connection history

这样,重复这些步骤以确保没有遗漏任何不必要的凭据。

完成后,关闭 Credential Manager 页面并打开 RDC 面板。检查您是否仍然看到那些旧 IP 地址。

如何防止 Windows 保存 RDP 连接历史记录?

一旦您清除了所有凭据,它们可能会永远消失。但是当您登录到更多远程计算机时,Windows 也会继续存储这些凭据。您实际上可以阻止 Windows 存储 RDP 连接历史记录。

1. 按Win 键R键。

2. 然后,在窗格中输入“ regedit ”并单击“ OK ”。

How to remove an IP address from Remote Desktop connection history

3.一旦你登陆注册表编辑器页面,直接前往这个地址 -

HKEY_CURRENT_USER\Software\Microsoft\终端服务器客户端\

4. 现在,右键单击“终端服务器客户端”并点击“权限... ”。

How to remove an IP address from Remote Desktop connection history

5. 在权限窗口中,点击“高级”设置进行访问。

How to remove an IP address from Remote Desktop connection history

6. 在屏幕底部,您必须单击“禁用继承”来禁用继承。

How to remove an IP address from Remote Desktop connection history

7. 您将看到一个提示来决定如何处理已经继承的权限。您可以选择“从该对象中删除所有继承的权限”。以避免任何冲突。

或者,您可以使用“将继承的权限转换为此对象的显式权限”来转换权限。“ 选项。

How to remove an IP address from Remote Desktop connection history

8. When finished, first click "Apply" to apply the changes, then click "OK".

How to remove an IP address from Remote Desktop connection history

9. Return to the original permissions page and select the "User" account from the list.

[Also, if you don't want to disturb other users, you can choose your username and continue. ]

10. Just check the "Deny" box in the "Full Control" option.

How to remove an IP address from Remote Desktop connection history

11. Finally, just click "Apply" and "OK" to save all of this.

How to remove an IP address from Remote Desktop connection history

After completing all these operations, close the Registry Editor screen. Then, restart the system. MSTC does not log further RDP connections. This should resolve the issue once and for all.

The above is the detailed content of How to remove an IP address from Remote Desktop connection history. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete