Wednesday 2 March 2011

Registry Tweaks to Speed Up Windows 7

Microsoft's OS Windows 7 is already very fast and reliable, but there is a registry script which can tweak a few internal settings to optimize your system performance and add a few useful extras in right click context menu at files/folder.

You can do it by make the registry key command script with notepad, follow the instruction below how to make those registry key. 



Type the script below into notepad:
Windows Registry Editor Version 5.00

;Created by nugraha perkasa

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="1000"
"MenuShowDelay"="8"
"WaitToKillAppTimeout"="2000"
"LowLevelHooksTimeout"="1000"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLowDiskSpaceChecks"=dword:00000001
"LinkResolveIgnoreLinkInfo"=dword:00000001
"NoResolveSearch"=dword:00000001
"NoResolveTrack"=dword:00000001
"NoInternetOpenWith"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="2000"

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer]

[HKEY_CLASSES_ROOT\*\shell\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\exefile\shell\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\dllfile\shell\takeownership]
'@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

click to view larger











Then save the file by using "Save As" then choose "Save as type" "All Files" with the file name you desire.
For example I use "Windows 7 Registry Tweaks.reg" (without quotation).
click to view larger





Then open the ".reg" files you've made, when the registry editor ask your confirmation to change the registry key then click yes. Now you're done, restart your system to take affect and you will definitely experience the tweaking affect.

If you are worried about what this registry script is going to do in your system, then here is a description of all the tweaks included in those script command:
  • Adds "Copy To" and "Move To" options in files and folders context menu, so that you can easily copy and move them to other locations.
  • Sets Windows to automatically end task of programs which are either hanged or taking longer time than expected to exit.
  • Decreases menus show delay time, it'll show the sub-menus fast when you select their parent menu.
  • Disables the low disk space check so that you don't get the annoying low disk space notification in system tray.
  • Sets Windows to not waste time in searching for a program which no longer exists in your system when you try to open its shortcut.
  • Disables "search on Internet" prompt in "Open with" window so that it directly opens the program list.
  • Speeds up the Explorer navigation.
  • Adds "Take Ownership" option in files and folders context menu so that you can easily take ownership of files and folders in case you want to replace them for customization purpose.
I assure you it will not harm your system in any condition and it is safe to apply. 
So how to restore to the default settings before using those command registry script?
You can do it by make the registry key command script with notepad, follow the instruction below how to make the default settings registry command script.
Type the script below into notepad:
Windows Registry Editor Version 5.00

;Created by nugraha perkasa

[-HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]

[-HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="0"
"HungAppTimeout"="20000"
"MenuShowDelay"="400"
"WaitToKillAppTimeout"="20000"
"LowLevelHooksTimeout"="20000"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLowDiskSpaceChecks"=dword:00000000
"LinkResolveIgnoreLinkInfo"=dword:00000000
"NoResolveSearch"=dword:00000000
"NoResolveTrack"=dword:00000000
"NoInternetOpenWith"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="20000"

[-HKEY_CLASSES_ROOT\*\shell\takeownership]

[-HKEY_CLASSES_ROOT\exefile\shell\takeownership]

[-HKEY_CLASSES_ROOT\dllfile\shell\takeownership]

[-HKEY_CLASSES_ROOT\Directory\shell\takeownership]

click to view larger
 









Then save the file by using "Save As" then choose "Save as type" "All Files" with the file name you desire. 
For example, I use "Restore to default Windows7 settings.reg" (without quotation).


click to view larger





Then open the ".reg" files you've made. when the registry editor ask your confirmation to change the registry key then click yes to restore to windows default settings. Now you're done, restart your system to take affect and your system will revert to the default windows settings.