| Get the all programs on alphabet again |
|
|
| Written by Hans Straat, Wednesday, 24 May 2006 | ||||||
|
When you implement a new environment you get your start > all programs fresh from the start. After working several weeks you get the job to implement a new program to the servers. Now your start menu goes like a,b,d,a etc because the last installed program will show up last. Manually you can delete they registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder and delete all the subfolders under it. Doing this for 5 users may be fine but what if you have 1500 users complaining about the start menu, are you willing to delete the key one at a time? Deleting the key with regdelete using a vbscript won't work because there are folders under the rootkey which are not empty. We found a solution on the internet developed by a microsoft scripting mvp and slightly changed the script. The script has been tested on a windows 2003 terminal server and a windows XP pro workstation but should work on all operating systems from microsoft. This script will not check if it has already performed his action it will simply redo the action by deleting the values and folders under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder again. If you only want to run it once you have to edit the script before running it. Test the script before implementing it in a production environment is always my advice cause we are human and can make mistakes.. Da script Option Explicit Const HKEY_CLASSES_ROOT = &H80000000 Dim RegHive 'Select registry hive constant from above list. 'Recursive sub to delete all subkeys and parentkey. Sub DelKey(RegRoot, SPath) 'wscript.echo "ENUMERATING KEY: " & sPath & "\" & Key If IsArray(sKeys) Then
Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/ |
||||||
| < Prev | Next > |
|---|

