Search notes:

Configuring Windows with registry

Associate file types with programs

Starting a perlscript (for example foo.pl) without suffix and without prefixing it with perl: c:\> foo.
@rem
@rem Needs Admin privileges
@rem
@rem assoc .pl=PerlScript
@rem ftype PerlScript=perl.exe %1 %*
@rem


@reg add HKCU\Software\Classes\.pl      /t REG_SZ /d PerlScript /f

@rem
@rem  Note
@rem    If there are multiple perls in %PATH%, the following
@rem    construct will find the "last" perl executable, not the first.
@rem
@for /f "usebackq" %%a in (`where perl.exe`) do @set perl_location=%%a

@reg add HKCU\Software\Classes\PerlScript\shell\open\command /t REG_SZ /d "%perl_location% %%1 %%*" /f

@rem TODO
@rem   You also might want to add .pl to the env variable PATHEXT
@rem   by adding ;.pl
Github repository Configure-Windows, path: /assoc_ftype_perl.bat

cmd.exe

��Windows Registry Editor Version 5.00



;

; This file cannot be imported on the command

; line with

;    regedit /s console.reg

;

;(It can, however, be imported when regedit is

; started as GUI program)

; 

; Use console.bat to make the changes to the registry.

;





[HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]

"ScreenColors"=dword:0000000f

"ScreenBufferSize"=dword:270f00c8

"WindowSize"=dword:004e00c8

"FontSize"=dword:000a0000

"FontFamily"=dword:00000036

"FontWeight"=dword:00000190

"FaceName"="Lucida Console"

"QuickEdit"=dword:00000001



Github repository Configure-Windows, path: /console.reg
See also the registry key HKCU\Console for configuring cmd.exe.

Turning off most sounds

See HKEY_CURRENT_USER\AppEvents\Schemes\Apps

Explorer

@rem Disable autoplay
@rem ----------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" /v DisableAutoplay                  /t REG_DWORD /d 1 /f

@rem Show file extensions
@rem --------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"         /v HideFileExt                      /t REG_DWORD  /d 0 /f
                                                                                                                               
@rem Show hidden files (1: Show, 2: Don't show)                                                                                
@rem ------------------------------------------                                                                                
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"         /v Hidden                           /t REG_DWORD  /d 1 /f
                                                                                                                               
@rem Really, show ALL hidden Files                                                                                             
@rem -----------------------------------                                                                                       
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"         /v SuperHidden                      /t REG_DWORD  /d 0 /f 
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"         /v ShowSuperHidde                   /t REG_DWORD  /d 1 /f 

@rem Don't change case in file names
@rem Commented as it seems to be ok in Windows 7 anyway.
@rem @reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"    /v DontPrettyPath                   /t REG_DWORD  /d 1 /f

@rem No thumb.db files
@rem -----------------
@rem Don't create thumb.db (thumbnail) files for local files
@rem If not turned off, the thumbnail files are stored under %userprofile%\AppData\Local\Microsoft\Windows\Explorer
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"         /v DisableThumbnailCache            /t REG_DWORD  /d 1 /f

@rem Don't create thumbnail files on network drives
@rem TODO http://superuser.com/questions/1161302/how-do-i-reg-add-to-hkey-current-user-as-adminstrator
@reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer"                        /v DisableThumbsDBOnNetworkFolders  /t REG_DWORD  /d 1 /f

@rem Don't ask to search the internet for the correct program when opening a file with an unknown extension
@rem ------------------------------------------------------------------------------------------------------
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"         /v NoInternetOpenWith               /t REG_DWORD  /d 1 /f

@rem What difference does this value make?
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"         /v NoSimpleStartMenu                /t REG_DWORD  /d 1 /f

Github repository Configure-Windows, path: /explorer.bat

Environment variables

Environment variables can be set in the following keys:

Misc

@rem Time in milliseconds it takes to open a cascading menu in the start menu
@rem ------------------------------------------------------------------------
@reg add "HKEY_CURRENT_USER\Control Panel\Desktop"   /v MenuShowDelay /t REG_DWORD /d 50 /f
Github repository Configure-Windows, path: /misc.bat

Index