Wednesday, 20 February 2013

Windows Xp - Regisry Tricks

  Disabling the Right Click


1) HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
2) Create - DWORD value : NoViewContextMenu
3) Modify Value - 1 (and - 0 to enable back)

Disabling - Shutdown, Restart, Sleep, Hibernate Buttons 

1) Run : gpedit.msc
2) User Configuration
3) Administrative Templates
4) Start Menu and Taskbar
5) Right Click on : Remove and Prevent access to the Shutdown Command

Creating Shortcuts of Shutdown, Restart, Sleep, Hibernate

1) Right Click on Desktop
2) New
3) Shortcut
4) Type Name (of shortcut)
5) Type Location : Shutdown.exe -s -t 00 (for Shutdown)
6) Type Location : rundll32.exe PowrProf.dll,SetSuspendState (for Hibernate)
7) Type Location : rundll32.exe powrprof.dll,SetSuspendState (for Sleep)

Customizing Folder Icons

1) Create a Text File with the following contents and save it as : desktop.ini
 2) Contents--->

[.ShellClassInfo]
ICONFILE=path of the icon

Customizing Drive Icons

1) Create a Text File in the root of the drive with the following contents and save it as :autorun.inf
 2) Contents--->

[Autorun]
ICON=path of the icon

Preventing Applications from Running



1) HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
2) Create - DWORD value : DisallowRun
3) Modify Value : 1 (and : 0 to enable back)
4) Right Click on Explorer
5) Create a new key : DisallowRun
6) In the right pane of Disallow Run, create a new string for the application to which you want to disable.
7) Set Value Name : 1
8) Set Value Data : Name of App (e.g. : mspaint.exe)
9) Simply delete that Key whenever you want to run that App back.

Creating a Legal Notice on Startup


1) HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
2) Double click on : legalnoticecaptiion
3) Value Data : Your Notice 

Adding a Destination to : Send to (when we right click on a file)

1) Run : Shell:sendto
2) Now in the opened folder create a shortcut of that Program which you want to be the Destination.
3) To create Shortcut : Right Click on the Program and Drag it to that Folder

Adding Control Panel to the Right Click of Desktop

1) HKEY_CLASSES_ROOT\Directory\Background\shell
2) Right click on shell and create a new key : Control Panel
3) Create a new key in Control Panel : Command
4) Modify Value Name : (Default)
5) Modify Value Data : rundll32.exe shell32.dll,Control_RunDLL

Customizing Open With Menu

 1) HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\FileExts
 2) Select the file extension to whom you want to associate the new Program
3) Click on : OpenWithList
4) Add your Program

No comments:

Post a Comment