In case anyone is interested here is the script I came up with to clear the
MRU list for Remote Desktop Client:
-------------
' Script: ClearRDMRU.vbs
'Purpose: Clears the Most Recently Used list of computers in the Remote
Desktop Client Computer drop down box
' Author: Brian Heil
' Date: 15 March 2004
'Version: V1.2
'History:
' V1.0 - first script. used WMI to delete registry
entries.
' V1.1 - added deletion of Default.RDP file to clear
the computer box as well as the dropdown.
' V1.2 - changed to wscript RegDelete method, sped up
deletion loop significantly.
On Error Resume Next
Set WSHShell = WScript.createObject("WScript.Shell")
Set File = CreateObject("Scripting.FileSystemObject")
MYDocs = WSHShell.specialfolders("MyDocuments")
'Give the user a chance to opt out of clearing the list.
If MsgBox("Do you want to clear the Remote Desktop Client MRU list?" & vbcrlf
& vbcrlf & "You will be notified when complete.",36,"Clear MRU?") = 6 Then
'iterates through the 10 MRU values in the registry and deletes them
For i = 0 to 9
WSHShell.regdelete "HKCU\Software\Microsoft\Terminal Server
Client\Default\mru" & i
Next
'Deletes the Default.RDP file in the current users My Documents
directory. This holds the value
' in the default value in Computer box in the RDC
File.DeleteFile(MyDocs & "\default.rdp")
MsgBox "MRU List Cleared." & vbcrlf & junk,64,"Success"
End If
--
Brian Heil (319) 335-0675 | Stay Alert! | Technology
Services
Systems Administrator/Programmer | Trust No One! | University of
Iowa
(e-mail address removed) | Keep Your Laser Handy | College of
Business