This script will achieve that, it deletes the 'menuorder' string in the registry. I found the basics on a scripting site, but it needed a slight modification to make it work for this. I've no idea how it will perform in a networked environment, it works reliably on my PC at home.
Copy and paste into notepad, and save as a .VBS file. This is fairly un-tested so use it at your own risk! Modifying registry entries can cause problems, and this script COULD wipe your entire registry if you used it wrong! don't say you wern't warned!
Code:
'*******Begin script*********
On Error Resume Next
Const HKCU = &H80000001
strComputer = "."
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder"
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
DeleteSubkeys HKCU, strKeypath
Sub DeleteSubkeys(HKCU, strKeyPath)
objRegistry.EnumKey HKCU, strKeyPath, arrSubkeys
If IsArray(arrSubkeys) Then
For Each strSubkey In arrSubkeys
DeleteSubkeys HKCU, strKeyPath & "\" & strSubkey
Next
End If
objRegistry.DeleteKey HKCU, strKeyPath
End Sub
'*******End Script******* Mike.