Wednesday, 3 July 2013

My must-have settings in Windows 7 compilation

Show "ghost" hardware in Device Manager (stuff that's been connected, still has fluff left in system to some degree) 
SET DEVMGR_SHOW_NONPRESENT_DEVICES=1

Create Open Command Prompt Here : 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Open Command Prompt Here..."

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="cmd.exe /k pushd %L"


Right-click, new... :
- HKEY_CLASSES_ROOT\.txt\ShellNew
- Make a "Data" key to give default content : 
[HKEY_CLASSES_ROOT\.htm\ShellNew]
"Data"="<html><head></head><body></body></html>"

Shortcuts :
F4 - open address bar drop down(explorer)
Num Lock + * - Open all subfolders (left side explorer)
Alt + Space - Window Menu (minimize etc.)
Win + F - Open search
Ctrl + Shift + Esc = Process Explorer (or Task Manager...)

To make shortcut(instead of moving the file(!)) to Start Menu, right-click+drag and choose "make shortcut here"
ADD COPY TO AND SEND TO CONTEXT
Navigate to: HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers
Using Registry Editor; now add to key named as:
{C2FBB630-2971-11D1-A18C-00C04FD75D13}
{C2FBB631-2971-11D1-A18C-00C04FD75D13}

[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified" 

If you have many folders with strange views you can try resetting them all at once by executing the following registry file.   

-------------------------------------------------------
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]

[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell]
"BagMRU Size"=dword:00004e20

[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
-------------------------------------------------------
LeftClick+Shift on Folder gives "Open command window here"

System -> Advanced System Settings -> Environment Variables (User or Machine) -> Add "devmgr_show_nonpresent_devices" with value 1

Run (Win+R) .. - Opens C:\Users
Tricks for command line :
http://www.instantfundas.com/2009/04/6-windows-command-prompt-tricks-that.html

Open old .hlp files :
http://blog.komeil.com/2009/06/windows-help-program-winhlp32exe-for.html

Network Security : 
Allow Local System to use computer identity for NTLM - from Not Defined to Enabled

Network access:
Let Everyone permissions apply to anonymous users - from disabled to enabled

Folder Structure :
Application Data that applies to all users are stored in %systemdrive%\ProgramData
C:\Users\<username>\AppData\Roaming\Microsoft\Windows - Holds SendTo, Start Menu etc.
while C:\Users\Public\..... holds for all users