VMware vSphere Client – Clear Recent Connections (RDP Also)

Today I figured out how to empty the recent connections for the VMware vSphere Client.  After a while, these begin to add up and I do not like having useless IP addresses and DNS names from experimental ESXi boxes appearing in my client when I attempt to log in.  I searched the registry for some no longer functional servers and I found some keys in HKCU which contained the recently connected hosts.  Below I have listed the two values inside PowerShell commands which can be used to delete them.

Remove-ItemProperty -Path ‘HKCU:\Software\VMware\Virtual Infrastructure Client\Preferences\UI\ClientsXml’ -Name * 
Remove-ItemProperty -Path ‘HKCU:\Software\VMware\VMware Infrastructure Client\Preferences’ -Name RecentConnections

Update – Remote Desktop Connections

I figure many people interested in clearing the vSphere Client may also be interested in clearing their Remote Desktop connections list.  To accomplish this, you would remove the file “Default.rdp” from the users Documents directory.  To accomplish this, utilize one of the following PowerShell or shell commands.

Remove-Item $Env:UserProfile\Documents\Default.rdp -Force
del %userprofile%\Documents\Default.rdp /A H
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s