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
cd\
start /wait regedit.exe /s c:\windows\setup\regtweaks.reg & c:\windows\setup\bootedit.bat
exit
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]
"DisablePagingExecutive"=dword:00000001
;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]
"SkipRearm"=dword:00000001
;IE7
; IE7 Remove Search Box
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\InfoDelivery\Restrictions]
"NoSearchBox"=dword:00000001
; IE7Menu Bar Top
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser]
"ITBar7Position"=dword:00000001
; start Internet Explorer from a desktop icon and if you right-click the icon you can choose to start IE without Add-Ons.
[Hkey_Local_Machine\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000000
;Explorer
; Add "Take Ownership" to Explorer Right-Click Menu
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\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\runas]
@="Take Ownership"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\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"
;add "copy to" to right click context menu
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB630-2971-11D1-A18C-00C04FD75D13}]
;add "move to" to right click context menu
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13}]
; NTFS, Disable 8.3 names and Last Access (speeds up disk access)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisable8dot3NameCreation"=dword:00000001
"NtfsDisableLastAccessUpdate"=dword:00000001
; Specifies the time, following user input, during which the system keeps apps from moving into the foreground.
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ForegroundLockTimeout"=dword:00000000
; Disable automatic updates
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
"AUOptions"=dword:00000001
;Disable IPv6:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters]
"DisabledComponents"=dword:ffffffff
;Determines whether TCP uses the timestamping and window scaling features described in RFC 1323, TCP Extensions for High Performance
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"Tcp1323Opts"=dword:1