Windows 7 Installation: Win7NewInstall.bat and Win7RegEdit.reg
In the process of installing and adjusting Windows 7 Ultimate, I developed a batch file (Win7NewInstall.bat) to run certain commands. I also developed a registry (.reg) file (which I called Win7RegEdit.reg) to make a number of tweaks automatically. I developed these to be run in that order -- the batch file first, and then the registry edit file.
I found that some parts of the .reg file did not perform as desired. Running the .reg file produced an error:
Registry EditorI went through the registry edits that I had incorporated into the file, at that point, and identified individual items that were not installing, even with other programs closed. My search for responses to this error led to some webpages that made me think I might be better off making the needed changes via a batch file. Unfortunately, batch files sometimes produced the similar "ERROR: Access is denied." A search for answers to that led, in turn, to an understanding that I would need to take owneship of registry keys to make those changes; but a search on that subject led to another search whose upshot was that there was not a good automated way to take ownership of such keys, or at least not one that I would know how to use.
Cannot import [filename]: Not all data was successfully written to the registry. Some keys are open by the system or other processes.
I started to convert the .reg file to .batch file lines. I found guidance for that translation in tutorials from Dwarf and from Daniel Petri, and also in the online help files (in a Win7 cmd window, type "REG /?"). This step, by itself, did not eliminate the error shown above. Running a prohibited batch command in a DOS box (a/k/a cmd window, produced by Start > cmd) would yield Running the batch file in Windows 7 Safe Mode would sometimes if not always yield the same error.
I decided the most efficient solution was to automate the changes that I could automate (using either batch commands or the .reg file); failing that, to use Ultimate Windows Tweaker; and if that too failed, then go into the registry and make the changes manually. I then found I was able to automate parts of the manual process, so I built those parts into the sequence. In other words, the way I worked it out, I would run the batch file, then run the reg file, then run Ultimate Windows Tweaker, then make changes manually (e.g., in Control Panel). These steps are described more fully in my post about the whole Win7 installation process, from about this same time, entitled "Windows 7 Installation: Second Try."
I assembled these materials over a period of weeks, with numerous changes. This post does not necessarily represent the final state of these materials. It is more of a record of how they had developed at this point. It could be a very bad idea for someone else to simply adopt and run these files as-is. I could not say what effects that might have. Where I happened to think of it, I added some explanatory and cautionary comments within these files. For posterity, the contents of the Win7NewInstall.bat file were as follows:
@echo offAs shown in those final lines, Win7NewInstall.bat would then run Win7RegTweaks.reg. The contents of Win7RegTweaks.reg at this point were as follows:
:: ***** Win7NewInstall.bat *****
:: ************* NOTES *************
:: These commands customize a new Windows 7 installation.
:: I used some of these on my system. They are offered for reference.
:: These commands can ruin your system. Use at your own risk.
:: These were converted from .reg file lines, guided by the DOS help files at REG /?
:: I tried to minimize other running programs before running these commands.
:: Consult original source webpages for comments, changes, updates, etc.
:: I ran these as Administrator and had to reboot for some to take effect.
:: Set permissions manually as needed
:: This step requires OORegEditor, or something like it, in a designated directory.
cls
echo.
echo Copy and paste each of these into a program like OORegEditor (Ctrl-G).
echo The locations may already be saved as Favorites in that program.
echo.
echo There, right-click and set permissions for each of these keys.
echo.
echo HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder
echo.
pause
cls
echo.
echo The remaining tweaks will now install.
echo.
pause
cls
:: Disable User Account Control
wait "" "C:\Windows\System32\cmd.exe" /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
:: Optional: Enable User Account Control
:: C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
:: Other UAC Options
:: http://www.howtogeek.com/howto/windows-vista/4-ways-to-make-uac-less-annoying-on-windows-vista/
:: http://www.howtogeek.com/howto/3340/how-to-manage-uac-notifications-in-windows-7/
:: Create God Mode folder in Start Menu
md "D:\Installation\Start Menu\Programs\Tools\Tweakers\God Mode.{ED7BA470-8E54-465E-825C-99712043E01C}"
:: Turn off Windows Defender - it is included in Microsoft Security Essentials
takeown /f "c:\Program Files\Windows Defender" /r /d y
icacls "c:\Program Files\Windows Defender" /grant Administrator:F /t
ren "c:\Program Files\Windows Defender\MSASCui.exe" "c:\Program Files\Windows Defender\wasMSASCui.exe"
:: Map Network Drives
:: Not presently using network drives.
:: Command form: net use z: /persistent:yes \\servername\foldername password
:: More info at http://raywoodcockslatest.blogspot.com/2010/07/vmware-workstation-ubuntu-host-windows.html
:: Run the registry tweaks file
start "" "D:\Installation\Windows 7 Drive C\03 Other Installation & Tweaking Programs\99 Win7RegTweaks.reg"
exit
Windows Registry Editor Version 5.00After a week of using the system, these edits seemed generally stable. It appeared that a few might be ineffectual. I was using Ultimate Windows Tweaker to try again on making those changes.
; ************* NOTES *************
; These are registry edits. They can ruin your system. Use at your own risk.
;
; There are undo options for many of these at the sources (above).
; Items that are commented out were not needed on this system.
; Run this with no other programs running (even Windows Explorer).
; Probably have to run as Administrator in some cases.
; Consult the original source webpage for comments, changes, updates, etc.
; May have to reboot for some of these to take effect.
; ************* SOURCES *************
; http://www.howtogeek.com/howto/37920/the-50-best-registry-hacks-that-make-windows-better/
; http://www.sevenforums.com/tutorials/257-windows-7-tutorial-index.html
; and other assorted sources.
; ************* WINDOWS EXPLORER *************
; ***** Disable Libraries *****
[-HKEY_CLASSES_ROOT\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{491E922F-5643-4af4-A7EB-4E7A138D8174}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A302545D-DEFF-464b-ABE8-61C8648D939B}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A990AE9F-A03B-4e80-94BC-9912D7504104}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
“{031E4825-7B94-4dc3-B131-E946B44C8DD5}”=-
; Restore default
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
; "{031E4825-7B94-4dc3-B131-E946B44C8DD5}"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5}]
; @="UsersLibraries"
; "Removal Message"="@shell32.dll,-9047"
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}]
; "Name"="MusicLibrary"
; "Category"=dword:00000004
; "ParsingName"="::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}"
; "Stream"=dword:00000001
; "StreamResource"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,32,00,00,00
; "StreamResourceType"="LIBRARY"
; "RelativePath"="Music.library-ms"
; "ParentFolder"="{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"
; "Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
; 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
; 6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
; 00,31,00,30,00,30,00,34,00,00,00
; "InfoTip"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,31,00,32,00,36,00,38,00,39,00,00,00
; "LocalizedName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\
; 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
; 00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
; 2c,00,2d,00,33,00,34,00,35,00,38,00,34,00,00,00
; "PreCreate"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}\PropertyBag]
; "FoldersDependentOn"="{4BD8D571-6D19-48D3-BE97-422220080E43};{3214FAB5-9757-4298-BB61-92A9DEAA44FF}"
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{491E922F-5643-4af4-A7EB-4E7A138D8174}]
; "Name"="VideosLibrary"
; "Category"=dword:00000004
; "ParsingName"="::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{491E922F-5643-4af4-A7EB-4E7A138D8174}"
; "Stream"=dword:00000001
; "StreamResource"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,34,00,00,00
; "StreamResourceType"="LIBRARY"
; "RelativePath"="Videos.library-ms"
; "ParentFolder"="{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"
; "Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
; 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
; 6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
; 00,31,00,30,00,30,00,35,00,00,00
; "InfoTip"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,31,00,32,00,36,00,39,00,30,00,00,00
; "LocalizedName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\
; 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
; 00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
; 2c,00,2d,00,33,00,34,00,36,00,32,00,30,00,00,00
; "PreCreate"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{491E922F-5643-4af4-A7EB-4E7A138D8174}\PropertyBag]
; "FoldersDependentOn"="{18989B1D-99B5-455B-841C-AB7C74E4DDFC};{2400183A-6185-49FB-A2D8-4A392A602BA3}"
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}]
; "Name"="DocumentsLibrary"
; "Category"=dword:00000004
; "ParsingName"="::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}"
; "Stream"=dword:00000001
; "StreamResource"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,31,00,00,00
; "StreamResourceType"="LIBRARY"
; "RelativePath"="Documents.library-ms"
; "ParentFolder"="{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"
; "Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
; 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
; 6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
; 00,31,00,30,00,30,00,32,00,00,00
; "LocalizedName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\
; 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
; 00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
; 2c,00,2d,00,33,00,34,00,35,00,37,00,35,00,00,00
; "PreCreate"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}\PropertyBag]
; "FoldersDependentOn"="{FDD39AD0-238F-46AF-ADB4-6C85480369C7};{ED4824AF-DCE4-45A8-81E2-FC7965083634}"
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A302545D-DEFF-464b-ABE8-61C8648D939B}]
; "Name"="UsersLibrariesFolder"
; "Category"=dword:00000001
; "ParsingName"="::{031E4825-7B94-4dc3-B131-E946B44C8DD5}"
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A302545D-DEFF-464b-ABE8-61C8648D939B}\PropertyBag]
; "NoCustomize"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A990AE9F-A03B-4e80-94BC-9912D7504104}]
; "Name"="PicturesLibrary"
; "Category"=dword:00000004
; "ParsingName"="::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{A990AE9F-A03B-4e80-94BC-9912D7504104}"
; "Stream"=dword:00000001
; "StreamResource"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,33,00,00,00
; "StreamResourceType"="LIBRARY"
; "RelativePath"="Pictures.library-ms"
; "ParentFolder"="{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"
; "Icon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
; 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,\
; 6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
; 00,31,00,30,00,30,00,33,00,00,00
; "InfoTip"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,\
; 2d,00,31,00,32,00,36,00,38,00,38,00,00,00
; "LocalizedName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\
; 6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
; 00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,\
; 2c,00,2d,00,33,00,34,00,35,00,39,00,35,00,00,00
; "PreCreate"=dword:00000001
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A990AE9F-A03B-4e80-94BC-9912D7504104}\PropertyBag]
; "FoldersDependentOn"="{33E28130-4E1E-4676-835A-98395C3BC3BB};{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}"
; Hide Favorites
; Requires manual change of permissions
[HKEY_CLASSES_ROOT\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder]
"Attributes"=dword:a9400100
; Restore default
; "Attributes"=dword:a0900100
; Set Documents folder template as default
; source: http://www.sevenforums.com/tutorials/11356-folder-view-apply-all-folders.html
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="Documents"
; Alternative: use General type instead
; "FolderType"="NotSpecified"
; Restore default
; [HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
; "FolderType"=-
; [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\BagMRU]
; [-HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags]
; [-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
; [-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
; ***** Context Menu *****
; Add context menu option to open files with Notepad
[HKEY_CLASSES_ROOT\*\shell\Notepad]
@="Open with Notepad"
[HKEY_CLASSES_ROOT\*\shell\Notepad\command]
@="notepad.exe \"%1\""
; Remove option
; [-HKEY_CLASSES_ROOT\*\shell\Notepad]
; Add context menu option to take ownership of files and folders
[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"
; Restore default
; [-HKEY_CLASSES_ROOT\*\shell\runas]
; [-HKEY_CLASSES_ROOT\Directory\shell\runas]
; Add context menu items Copy To Folder and Move To Folder
; [HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers]
; [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}"
; Add context menu item to copy text files to clipboard
[HKEY_CLASSES_ROOT\txtfile\shell\copytoclip]
@="Copy to Clipboard"
"Extended"=""
[HKEY_CLASSES_ROOT\txtfile\shell\copytoclip\command]
@="cmd /c clip < \"%1\""
; Restore default
; [-HKEY_CLASSES_ROOT\txtfile\shell\copytoclip]
; Add context menu encryption option
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"EncryptionContextMenu"=dword:00000001
; ***** Other Functioning *****
; Disable annoying web service dialog for opening files
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoInternetOpenWith"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoInternetOpenWith"=dword:00000001
; Restore default
; [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
; "NoInternetOpenWith"=-
; [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
; "NoInternetOpenWith"=-
; ***** Unused *****
; Double-pane Windows Explorer for network drives
; [HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec]
; @="[ExploreFolder(\"%l\", %I, %S)]"
; Disable context menu item Send To
; [HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Send To]
; @=""
; Restore default
; @="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
; Disable Caps Lock key
; [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
; "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,3a,00,00,00,00,00
; Alternative: change Caps Lock to Ctrl
; "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
; Alternative: change Caps Lock to Shift
; "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,2a,00,3a,00,00,00,00,00
; Alternative: change Caps Lock to ScrollLock
; "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,3a,00,3A,00,46,00,00,00,00,00
; Eliminate keyboard remap
; "Scancode Map"=-
; Disable balloon tips
; [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
; "EnableBalloonTips"=dword:00000000
; Restore default
; "EnableBalloonTips"=-
; Set Alt-Tab to show thumbnails despite Classic desktop theme
; Doesn't work
; [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
; "AltTabSettings"=-
; Alternate: set Alt-Tab to Classic
; [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
; "AltTabSettings"=dword:00000001
; ************* START MENU, TASKBAR, AND THUMBNAILS *************
; Make Aero Peek happen instantly
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DesktopLivePreviewHoverTime"=dword:00000000
; Restore default
; "DesktopLivePreviewHoverTime"=dword:000001f4
; Make Aero taskbar thumbnails show contents immediately when hovering
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ExtendedUIHoverTime"=dword:00000001
; Increase Start Menu display speed -- default is 400
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="200"
; ************* FILE LOCATIONS *************
; Point to D for Start Menu and Programs
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Administrative Tools"="D:\\Installation\\Start Menu"
"Programs"="D:\\Installation\\Start Menu\\Programs"
"Startup"="D:\\Installation\\Start Menu\\Programs\\Startup"
"Start Menu"="D:\\Installation\\Start Menu"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Programs"="D:\\Installation\\Start Menu\\Programs"
"Startup"="D:\\Installation\\Start Menu\\Programs\\Startup"
"Start Menu"="D:\\Installation\\Start Menu"
; Point to Current folder for Music, Video, Pictures, etc.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"My Music"="D:\\Current"
"My Pictures"="D:\\Current"
"My Video"="D:\\Current"
"Personal"="D:\\Current"
"{374DE290-123F-4565-9164-39C4925E467B}"="D:\\Current"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"My Music"="D:\\Current"
"My Pictures"="D:\\Current"
"My Video"="D:\\Current"
"Personal"="D:\\Current"
"{374DE290-123F-4565-9164-39C4925E467B}"="D:\\Current"
; Point to X:\Cache for cookies, cache, etc.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Cache"="X:\\Cache\\Temporary Internet Files"
"Cookies"="X:\\Cache\\Cookies"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Cache"="X:\\Cache\\Temporary Internet Files"
"Cookies"="X:\\Cache\\Cookies"
; ************* FILE OPENING *************
; Files with no extension open in Notepad
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\open]
@="Open With Notepad"
[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Notepad]
@="Notepad"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Notepad\command]
@="C:\\Windows\\notepad"
; Disable Windows from asking "Do you want to open this file?"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download]
"CheckExeSignatures"="no"
"RunInvalidSignatures"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"SaveZoneInformation"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;"
; ************* INTERNET EXPLORER *************
; Specify IE download directory
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer]
"Download Directory"="D:\\Current"
; Force IE to launch shortcuts in a new window
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000
; ************* LOGIN, LOGOUT, SHUTDOWN *************
; Prevent Windows from rebooting after updates
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
; Restore default
; "NoAutoRebootWithLoggedOnUsers"=-
; Save settings on exit
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoSaveSettings"=dword:00000000
; Disable automatic restart after crash so you can see error messages
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot "=dword:00000000
; Don't clear paging file at shutdown
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000000
; Hide user account on login screen
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts]
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
"Administrator"=dword:00000000
; Restore default
; [-HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]
; [-HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts]
; ************* OTHER TWEAKS *************
; Remove "Shortcut" from title of shortcuts
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00
; Restore default
; "link"=hex:1e,00,00,00
; Removable devices Auto-Play off
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoDriveTypeAutoRun"=dword:00000095
; Alternate: "NoDriveTypeAutoRun"=dword:000000FF
; May not be needed in Win7: "NoSaveSettings"=dword:00000000
; Disable creation of Thumbs.db
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DisableThumbnailCache"=dword:00000001
; Disable beep on error
[HKEY_CURRENT_USER\Control Panel\Sound]
"Beep"="No"
; Increase Internet download connections to 10
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPerServer"=dword:0000000a
"MaxConnectionsPer1_0Server"=dword:0000000a
; Set Control Panel to classic view
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ForceClassicControlPanel"=dword:00000001
1 comments:
such a good post , if you can tell me what to do when i forgot windows 7 password, i will very thankful.
Post a Comment