Wednesday, January 6, 2010

Windows Policies Customization from registry


Note: Editing registry directly is not safe, it can crash your windows or it starts working abnormally, so if you have good knowledge of registry only then try this.

The various information about the policies of the Windows Explorer stored in the registry key as below:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

There is a list of values in this key that can be customized to reflect the desired behavior of the windows policies.

e.g. To Hide Disc Drive

navigate to registry key as specified above". Create a new entry by clicking on edit-> new->"Dword value". Name the value as 3fffffff.
Now each drive letter has a number. The value of the key will be the sum of the drive letter numbers. Some of the numbers are :
A:=1, B:=2,C:\4,D:=8,e:=16,f:=32,g:=64,H:=128,I:=256,j:=512,k:=1024,L:=2048 and so on. ..... Now if you want to hide "C:" and "D:" , you just have to enter value as '12'(4+8). Enter as decimal value in the dword key and restart windows.
To get back your drives just delete the key called "3fffffff".


Similarly you can enforce/disable many other policies to in addition to default policy behaviours. Some of the useful list of tricks is given as below:

Navigate to same key as given above and Under this create a DWORD-Value and name it from the list below to impose restriction.

The value of which will be
  • 1 to restrict and
  • 0 to remove restriction.
NoDeletePrinter: Disables Deletion of already installed Printers
NoAddPrinter: Disables Addition of new Printers
NoRun : Disables or hides the Run Command
NoSetFolders: Removes Folders from the Settings option on Start Menu (Control Panel, Printers, Taskbar)
NoSetTaskbar: Removes Taskbar system folder from the Settings option on Start Menu
NoFind: Removes the Find Tool (Start >Find)
NoDrives: Hides and does not display any Drives in My Computer
NoNetHood: Hides or removes the Network Neighborhood icon from the desktop
NoDesktop: Hides all items including, file, folders and system folders from the Desktop
NoClose: Disables Shutdown and prevents the user from normally shutting down Windows.
NoSaveSettings: Means to say, 'Don't save settings on exit'
DisableRegistryTools: Disable Registry Editing Tools (If you disable this option, the Windows Registry Editor(regedit.exe) too will not work.). So be very careful.
NoRecentDocsHistory: Removes Recent Document system folder from the Start Menu (IE 4 and above)
NoFileMenu _ Hides the Files Menu in Explorer
NoActiveDesktop - No Active Desktop
NoActiveDesktopChanges- No changes allowed
NoInternetIcon - No Internet Explorer Icon on the Desktop
NoFavoritesMenu - Hides the Favorites menu
NoChangeStartMenu _ Disables changes to the Start Menu
NoFolderOptions _ Hides the Folder Options in the Explorer
NoLogoff - Hides the Log Off .... in the Start Menu
NoViewOnDrive – Restrict a drive to open
NoTrayContextMenu - No context menu in tray.
NoStartMenuSubFolders
NoWindowsUpdate
NoViewContextMenu
EnforceShellExtensionSecurity
LinkResolveIgnoreLinkInfo
NoDriveTypeAutoRun
NoStartBanner
NoSetActiveDesktop
NoNetConnectDisconnect
ClearRecentDocsOnExit: Clears the Recent Documents system folder on Exit.
RestrictRun - Disables all exe programs except those listed in the RestrictRun subkey

-----------------------------------------------------------------------------------------
Under the same key i.e. "HKEY_CURRENT_USER/Software/Microsoft/CurrentVersion/Policies" you can create new subkeys other than the already existing Explorer key.

-Now create a new key and name it System.
-Under this new key, system we can create the
following new DWORD values

  • 1 for enabling the particular option and
  • 0 for disabling the particular option

· NODispCPL: Hides Control Panel
· NoDispBackgroundPage: Hides Background page.
· NoDispScrsavPage: Hides Screen Saver Page
· NoDispAppearancePage: Hides Appearance Page
· NoDispSettingsPage: Hides Settings Page
· NoSecCPL: Disables Password Control Panel
· NoPwdPage: Hides Password Change Page
· NoAdminPaqe: Hides Remote Administration Page
· NoProfilePage: Hides User Profiles Page
· NoDevMgrPage: Hides Device Manager Page
· NoConfigPage: Hides Hardware Profiles Page
· NoFileSysPage: Hides File System Button
· NoVirtMemPage: Hides Virtual Memory Button

Windows Explorer Behaviour Customization


Note: Editing registry directly is not safe, it can crash your windows or it starts working abnormally, so if you have good knowledge of registry only then try this.

The various information about the behavior of the Windows Explorer and its contents is stored in the registry key as below:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

There is a list of values in this key that can be customized to reflect the desired behavior of the windows explorer.

e.g. If you want to increase the size of the folder icon you can change the value of ThumbnailSize which has default value to be "60".

Windows CLSID

All COM objects are named with unique CLSID and which is responsible for any behaviour instict in Windows file system. So these CLSID can also change the behaviour of the folder too.

e.g. if we have a directory named "xyx" at location "C:\". Also the CLSID for the windows Lock tool is "{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}". So if you need the folder to have icon as that of the Lock tool of the windows then just rename the directory "xyz" to "xyz.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}". This will cause the directory icon changed to lock.


Similarly we can bind other folders with corresponding CLSID. Various well known CLSID list is as given below.

"{85BBD920-42A0-1069-A2E4-08002B30309D}"="Briefcase"
"{BD84B380-8CA2-1069-AB1D-08000948F534}"="Fonts"
"{7007ACC7-3202-11D1-AAD2-00805FC1270E}"="Network Connections"
"{992CFFA0-F557-101A-88EC-00DD010CCC48}"="Network Connections"
"{E211B736-43FD-11D1-9EFB-0000F8757FCD}"="Scanners & Cameras"
"{FB0C9C8A-6C50-11D1-9F1D-0000F8757FCD}"="Scanners & Cameras"
"{905667aa-acd6-11d2-8080-00805f6596d2}"="Scanners & Cameras"
"{3F953603-1008-4f6e-A73A-04AAC7A992F1}"="Scanners & Cameras"
"{83bbcbf3-b28a-4919-a5aa-73027445d672}"="Scanners & Cameras"
"{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"="Scheduled Tasks"
"{0DF44EAA-FF21-4412-828E-260A8728E7F1}"="Taskbar and Start Menu"
"{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0}"="Search"
"{2559a1f1-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}"="Run..."
"{2559a1f4-21d7-11d4-bdaf-00c04f60b9f0}"="Internet"
"{2559a1f5-21d7-11d4-bdaf-00c04f60b9f0}"="E-mail"
"{D20EA4E1-3957-11d2-A40B-0C5020524152}"="Fonts"
"{D20EA4E1-3957-11d2-A40B-0C5020524153}"="Administrative Tools"
"{01E04581-4EEE-11d0-BFE9-00AA005B4383}"="&Address"
"{FF393560-C2A7-11CF-BFF4-444553540000}"="History"
"{7A9D77BD-5403-11d2-8785-2E0420524153}"="User Accounts"
"{32714800-2E5F-11d0-8B85-00AA0044F941}"="For &People..."
"{5464D816-CF16-4784-B9F3-75C0DB52B499}"="Yahoo! Mail"
"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"="WinRAR shell extension"
"{BDEADF00-C265-11D0-BCED-00A0C90AB50F}"="Web Folders"
"{F2CF5485-4E02-4f68-819C-B92DE9277049}"="&Links"
"{416651E4-9C3C-11D9-8BDE-F66BAD1E3F3A}"="PhoneBrowser"


-----------------------------------------------------------------------
Some other list of collected CLSID strings is as given below:

network and internet connections
{7007ACC7-3202-11D1-AAD2-00805FC1270E}

a media clip
{00022601-0000-0000-C000-000000000046}

a video clip
{00022602-0000-0000-C000-000000000046}

MIDI Sequence
{00022603-0000-0000-C000-000000000046}

taskbar and start menu properties
{0DF44EAA-FF21-4412-828E-260A8728E7F1}

scheduled tasks icon
{148BD52A-A2AB-11CE-B11F-00AA00530503}

windows search
{1f4de370-d627-11d1-ba4f-00a0c91eedba}

network places
{208D2C60-3AEA-1069-A2D7-08002B30309D}

my computer
{20D04FE0-3AEA-1069-A2D8-08002B30309D}

control panel
{21EC2020-3AEA-1069-A2DD-08002B30309D}

printers and faxes
{2227A280-3AEA-1069-A2DE-08002B30309D}

an html document
{25336920-03F9-11CF-8FD0-00AA00686F13}

search icon
{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0}

help and support icon
{2559a1f1-21d7-11d4-bdaf-00c04f60b9f0}

a lock icon
{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}

run icon
{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}

opens your browser
{2559a1f4-21d7-11d4-bdaf-00c04f60b9f0}

opens outlook
{2559a1f5-21d7-11d4-bdaf-00c04f60b9f0}

properties icon
{2559a1f7-21d7-11d4-bdaf-00c04f60b9f0}

network setup wizard
{2728520d-1ec8-4c68-a551-316b684c4ea7}

MHTML document
{3050F3D9-98B5-11CF-BB82-00AA00BDCE0B}

html application
{3050f4d8-98B5-11CF-BB82-00AA00BDCE0B}

unknown filetype
{30D02401-6A81-11d0-8274-00C04FD5AE38}

wireless network setup wizard
{3c5c43a3-9ce9-4a9b-9699-2ac0cf6cc4bf}

my documents
{450D8FBA-AD25-11D0-98A8-0800361B1103}

XMl document
{48123bc4-99d9-11d1-a6b3-00c04fd91555}

recycle bin full
{5ef4af3a-f726-11d0-b8a2-00c04fc309a4}

FTP
{63da6ec0-2e98-11cf-8d82-444553540000}

empty recycle bin
{645FF040-5081-101B-9F08-00AA002F954E}

installation cd icon
{67cf8cbd-e5c0-44f7-9de5-e1d599d626d8}

looks like its where browser plugins are kept
{692F0339-CBAA-47e6-B5B5-3B84DB604E87}

folder options
{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF}

network and internet connections
{7007ACC7-3202-11D1-AAD2-00805FC1270E}

clipboard icon
{72ADFD4B-2C39-11D0-9903-00A0C91BC942}

system restore icon
{7325c922-bb81-47b0-8b2f-a5f8605e242f}

wordpad document
{73FDDC80-AEA9-101A-98A7-00AA00374959}

unknown folder type
{750fdf0f-2a26-11d1-a3ea-080036587f03}

user accounts
{7A9D77BD-5403-11d2-8785-2E0420524153}

scheduled tasks
{7BD29E00-76C1-11CF-9DD0-00A0C9034933}

[internet explorer installation like activex] icon
{8369AB20-56C9-11D0-94E8-00AA0059CE02}

briefcase
{85BBD920-42A0-1069-A2E4-08002B30309D}

IE
{871C5380-42A0-1069-A2EA-08002B30309D}

zip folder
{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}

internet explorer installations like activex
{88C6C381-2E85-11D0-94DE-444553540000}

unknown folder icon
{8E6E6079-0CB7-11d2-8F10-0000F87ABD16}

network and internet connections
{992CFFA0-F557-101A-88EC-00DD010CCC48}

lock icon
{9B0EFD60-F7B0-11D0-BAEF-00C04FC308C9}

restore icon
{9DB7A13C-F208-4981-8353-73CC61AE2783}

mail icon
{9E56BE60-C50F-11CF-9A2C-00A0C90A90CE}

desktop icon
{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}

search icon
{A9B48EAC-3ED8-11d2-8216-00C04FB687DA}

unknown filetype
{ADB9F5A4-E73E-49b8-99B6-2FA317EF9DBC}

unknown folder type
{AFDB1F70-2A4C-11d2-9039-00C04F8EEB3E}

favorites
{B005E690-678D-11d1-B758-00A0C90564FE}

unknown file type
{B12AE898-D056-4378-A844-6D393FE37956}

another damn icon
{B50F5260-0C21-11D2-AB56-00A0C9082678}

all unknown file types
{B7BBD408-F09C-4aa8-B65E-A00B8FE0F0B9}

choose folder name
{B96D2802-4B41-4bc7-A6A4-55C5A12268CA}

choose folder name
{BD84B380-8CA2-1069-AB1D-08000948F534}

choose folder name
{c79d1575-b8c6-4862-a284-788836518b97}

webfolders
{BDEADF00-C265-11d0-BCED-00A0C90AB50F}

fonts folder
{D20EA4E1-3957-11d2-A40B-0C5020524152}

admin settings
{D20EA4E1-3957-11d2-A40B-0C5020524153}

bitmap image
{D3E34B21-9D75-101A-8C3D-00AA001A1652}

add network place wizard
{D4480A50-BA28-11d1-8E75-00C04FA31A86}

scheduled tasks
{D6277990-4C6A-11CF-8D87-00AA0060F5BF}

opens up search
{e17d4fc0-5564-11d1-83f2-00a0c90dc849}

scanners and cameras
{E211B736-43FD-11D1-9EFB-0000F8757FCD}

is zip folder
{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}

policy package
{ecabaebd-7f19-11d2-978E-0000f8757e2a}

my docments
{ECF03A32-103D-11d2-854D-006008059367}

unknown file type
{EFA24E61-B078-11d0-89E4-00C04FC9E26E}

another damn icon
{EFA24E62-B078-11d0-89E4-00C04FC9E26E}

another unknown folder type
{effc2928-37b1-11d2-a3c1-00c04fb1782a}

XML document
{f5078f28-c551-11d3-89b9-0000f81fe221}

an unknown folder type
{F5175861-2688-11d0-9C5E-00AA00A45957}

scanner and cameras
{FB0C9C8A-6C50-11D1-9F1D-0000F8757FCD}

internet explorer
{FBF23B42-E3F0-101B-8488-00AA003E56F8}

scheduled tasks
{FF393560-C2A7-11CF-BFF4-444553540000}

Also, I'm analyzing what other benefits can be obtained from these existing features for our requirements, please comment if any of the reader have some more tips related to CLSID benefits.

Tuesday, January 27, 2009

Registry Guide for Windows

The Registry Guide for Windows®, formerly RegEdit.com, provides an extensive range of registry tweaks, tricks & hacks for optimizing, enhancing and securing the Windows® XP, 2000, NT, 98, 95, Me and Vista operating systems. Get started by exploring the categorized tweaks below: . . . . . . . . . . . . . . .

Monday, January 26, 2009

Windows Logon Customization

Various windows related things happens during logon can be customized by changing values under the key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

This key contains various featured values that can be changed according to our needs. For various uses of these, we can google according to our requirements for these registry keys.

Various useful information related to PC

Here is the link that contains various softwares that are very useful for monitoring various features of your PC. like CrystalDiskInfo, which is a S.M.A.R.T. based utility that supports not only internal drives, but both USB and IEEE1394’s as well. It displays an incredible amount of simple and advanced disk information, and may always be running in the background. This includes temperature readings, read/write errors and power management tools, running at all times of the day. ........

http://crystalmark.info/download/index-e.html

Friday, January 23, 2009

Simon's Win32 Cheat Sheet

Simon's Win32 Cheat Sheet

This sheet summarises all the things I do to make my Win2k machine more useful to me. I've summarised it here partly for my own benefit (I have to repeat the process on each new machine) and partly in the hope that it may be be of use to others.

Please tell me, simonpj@microsoft.com, if there are things you find useful that aren't mentioned here.

I have a Win2k Machine, but I've added possibly-inaccurate notes about Win95 too. In general, Win95/Win98 behave the same, and WinNT/Win2k behave the same.. . . . . . . . .. . . . . . . . . . . .