Sunday, 17 February 2008

Windows Vista - Registry tweaks

SetupComplete.cmd - this batch file will run after Windows is installed, but before the logon screen appears. Windows Setup searches for the SetupComplete.cmd file in the C:\Windows\Setup\Scripts folder. If a SetupComplete.cmd file is found, the file is executed.

Copy and paste the following text in Notepad, save as Setupcomplete.cmd

@echo off


start /wait regedit.exe /s c:\windows\setup\regtweaks.reg & c:\windows\setup\bootedit.bat


Create the C:\Windows\Setup\Scripts Scripts folder and place the SetupComplete.cmd file in the folder

Copy and paste he following text in Notepad, save as regtweaks.cmd

Windows Registry Editor Version 5.00

;put the Windows Kernel in memory

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]


;setting this to 1 allows for 8 "rearmings of activation" in Vista Business and Ultimate editions.

;A setting of zero allows for only 3 rearms.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SL]



; IE7 Remove Search Box

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\InfoDelivery\Restrictions]


; IE7Menu Bar Top

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser]


; start Internet Explorer from a desktop icon and if you right-click the icon you can choose to start IE without Add-Ons.




; Add "Take Ownership" to Explorer Right-Click Menu


@="Take Ownership"



@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"


@="Take Ownership"



@="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"

;add "copy to" to right click context menu



;add "move to" to right click context menu



; NTFS, Disable 8.3 names and Last Access (speeds up disk access)




; Specifies the time, following user input, during which the system keeps apps from moving into the foreground.

[HKEY_CURRENT_USER\Control Panel\Desktop]


; Disable automatic updates

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]


;Disable IPv6:


;Determines whether TCP uses the timestamping and window scaling features described in RFC 1323, TCP Extensions for High Performance



Put the regtweaks.reg file in the C:\Windows\Setup folder.

You can use SetupComplete.cmd to copy files to the PC, run scripts, modify registry settings and so on.

Note: You do not see SetupComplete.cmd run or have interaction with it, so be sure any commands you do use in the SetupComplete.cmd file are accurate and won't error out on you.


Anonymous said...

how do I edit the list if I don't want all the tweaks?

Cyanna S said...

either delete the lines referring to that particular setting, or, if you think you might change our mind, add a ; in front of the lines with the rgistry key and value.
If you later change your mind, right click on the reg file, choose "edit" and remove the ;.
Please be careful not to remove the ; in front of the lines describing what the setting does, otherwise merging the settings to the registry will result in an error message!

Wortho said...

Thanks very much for the info.