Showing posts with label Registry Tricks. Show all posts
Showing posts with label Registry Tricks. Show all posts

Single Click ShutDown

Did you know that in Windows XP you can shut down your computer from the (eventually DOS prompt) command line box? Moreover, you can do this by clicking your mouse only once.

All you need to do is... right-click on an empty Desktop spot -> select New -> Shortcut -> type shutdown followed by a space, and then enter one or more of the parameters listed below -> click Next -> type a suggestive name for your new shortcut -> finally, click Finish.

This is the Shutdown.exe (located in %systemroot%\System32, usually C:\Windows\System32) syntax:


shutdown [-i|-l|-s|-r|-a] [-f] [-m \\computername] [-t xx] [-c "Text"] [-d[u][p]:xx:yy]

Valid command line switches:

-a = Abort system shutdown in progress ONLY IF the -t xx timeout option was already set to ANY value other than 0. ALL switches except -l and -m are ignored during abort.

-c "Text" = Text comment (case insensitive) to be displayed in the Message area of the System Shutdown window. MUST be enclosed between quotes. Maximum allowed 127 ASCII characters.

-d [u][p]:xx:yy = Reason code for shutdown:
u = User code.
p = Planned shutdown code.
xx = Major reason code. Positive integer number less than 256.
yy = Minor reason code. Positive integer number less than 65536.

-f = Force running applications to close without warning.

-i = Display the shutdown interface (GUI). MUST be the first option!

-l = Log off the current user of the local computer (default action). Can NOT be used with the -m option unless the current user has Sysadmin rights, in which case the -m switch takes precedence.

-m \\computername = Remote/network computer name (most always case sensitive) to log off/restart/shut down. Current user MUST have Sysadmin rights to be allowed to use this switch!

-s = Shut down the local computer.

-r = Shut down and restart (reboot) the local computer.

-t xx = Set shutdown timer to timeout for xx seconds. IF NOT specified defaults to 20 seconds. Allowed values between 0 and 99 seconds. The -a switch is the ONLY one that CAN be used during the timeout period.

NOTES:
The dash (-) in front of these switches can be replaced by a forward slash (/).

Spaces are NOT required to separate the shutdown command from ANY following switches, but ARE required to separate ANY switch from its following parameter(s), if any.
For example:

shutdown -s -c "Shutting down!" -t 3

tells your computer to shutdown after waiting for 3 seconds while the System Shutdown window will display text above in the Message area.

Optional: after you're done creating your customized shortcut for shutdown -> right-click on it -> select Properties -> enter your desired key "combo" in the Shortcut Key box (e.g. Ctrl + Alt + End) -> click OK/Apply.
From now on just left-click on your shutdown shortcut or hit that key combination to turn off/restart/log off your computer.

Rename Recycle Bin

1. Start, Run, 'Regedit'.
2. Press 'Ctrl'+'F' to open find box and type 'Recycle Bin' to search.
3. Change any value data with 'Recycle Bin' to whatever name you want to give it ( ie, like 'Trash Can' or 'Dump' etc).
4. Press F3 to continue searching for 'Recycle Bin' and change wherever you come across 'Recycle Bin' to new its new name.
5. Repeat step 4 until you have finished with searching and changed all values to its new name.
6. Close regedit and hit F5 on desktop to see the new name on screen.

Note: As a good practice, always backup your registry before changing anything although changing 'Recycle Bin' name is a simple tweak and doesnt affect anything else.

Disable Fax & Picture Viewer in XP

We all know that WinXP likes to keep itself held together, and how it doesnt like you uninstalling certain components. Well The Picture and Fax Viewer, is one of these programs which can cause problems if removed incorrectly. It can be disabled safely as follows:

[Start] [Run] type regedit and click [OK]

Navigate to :

HKEY_CLASSES_ROOT/ SystemFileAssociations/ image/ ShellEx/ ContextMenuHandlers

then delete the Folder ShellImagePreview under ContextMenuHandlers

Note: If you want to restore the Picture and Fax Viewer :

Create the ShellImagePreview folder and create the String Value (Default)
Assign it the value {e84fda7c-1d6a-45f6-b725-cb260c236066}

NOTE: This tweak doesnt uninstall the program. It removes the association and therefore it cannot be run.

How to Back up the Registry

Before you edit the registry, export the keys in the registry that you plan to edit, or back up the whole registry. If a problem occurs, you can then follow the steps how-to restore the registry to its previous state.


How to Export Registry Keys

Click Start, and then click Run.

In the Open box, type regedit, and then click OK.

On the File menu, click Export.

In the Save in box, select the boxs at the bottom the bottom according to weather you want to export all or only selected branches of the registry.

Next select a location in which to save the backup .reg file. In the File name box, type a file name, and then click Save.


How to Restore the Registry

To restore registry keys that you exported, double-click the .reg file that you saved.

Disable or Enable Auto run CD in XP

In windows XP you can enjoy a good feature to run CD or DVD automatically when you loaded it into you CD drives on your computer. This is a defaults feature in windows XP but you can disable and enable it according to your nature of work. In user interface mode there is no option to disable or enable this feature, you must edit the registry of windows and be careful to work registry.



Click Start button then type regedit in Run option then press Enter for next.

Here locate the location to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom

Here you can disable or enable automatically running your CD. Change the value of Autorun to 0 for disable and change the value to 1 for enable. At the end restart your computer for this change.

Change The Recycle Bin's Name

You can change the name of Recycle Bin of your system if you wish. It is very easy and interesting but it require some changes in windows registry,

1.First click on Start button > click on Run option.

2.Type here regedit.exe and press enter then you will find there regedit editor.

3.In regedit editor you will open HKEY_CLASSES_ROOT folder, In this folder open the CLSID folder then open the {645FF040-5081-101B-9F08-00AA002F954E} folder >ShellFolder folder at last.

4.Here simply change the data value from "40 01 00 20" to "70 01 00 20".



After performing all above steps restart your computer then you will find option to rename Recycle name after right clicking on Recycle Bin Icon. Now you can change new name as you wish.

Disable the unread email notification in XP welcome screen

Windows XP by default display the list of unread email on the windows welcome screen. But some time this unread email notification is irritating users and they don't want to display it on the welcome screen. They can easily disable it using the windows registry editor. Make sure before modifying your system Registry about its backup because Registry contains all information how your system runs. This backup will help you to restore Registry in case any problem occurs after modifying.

Follow the given steps to disable the email notification option:

1.To edit the computer registry, first you should log onto your computer with administrative rights.

2.First click on Start button and type "Regedit" in Run option.

3.Here locate the location to:

Navigate to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ UnreadMail

4.Here in right side panel, double click on the key MessageExpiryDays and set its value to 0.

But if MessageExpiryDays key doesn't exist, then in right side panel, click right to create a key with the name MessageExpiryDays and then set its value to 0.

Now close the registry editor and restart your computer after any changes to go into effect.

Edit system registry to turning off System Beeps

Normally Windows warning beeps are very useful to identify when problem happen. One internal speaker in your system casing creates these beeps. But some time when you are working with your laptop in the library and other quiet areas, then these beeps will be disturbing others. You can turn off all your computer beeps with editing registry keys.

Follow the given steps to turn off system beeps:

1.First click on Start button then type Regedit in Run option.

2.Here locate the location to:

3.HKEY_CURRENT_USER\Control Panel\Sound

4.Here in right side panel, double click on Beep and change its value of NO. But next time you can turn on these beeps, simply give its value Yes.

5.Now close the registry editor and restart your computer after any changes to go into effect.

Turning off the Help on Min, Max, Close Icons

When the mouse goes over the minimize, maximize and close icons on the upper right hand side of a window, you normally get a display telling you want those are for.
To disable that display:

1.Start Regedit

2.Go to HKEY_CURRENT_USER \ Control Panel \ Desktop

3.Create a String Value called MinMaxClose

4.Give it a value of 1

5.Reboot

secure your desktop Icons and other settings

Follow the given steps to disable the save settings functionality for desktop:

1.To use this feature, you will need to be logged into your computer with administrative rights.

2.Click Start button and type regedit in Run option then press Enter for next.

3.Here locate the location to:

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

4.Here in right side panel, right click to create a new DWORD value with the name NoSaveSettings (it is case sensitive), then assign number 1 in value data box.

5.Now close the registry editor and restart your computer after any changes to go into effect.

But next time, if you want to enable right click functionality on desktop then simply change the value to 0 of data box or delete the NoSaveSettings DWORD item.

Setting the Recycle Bin to Always Delete

The Recycle Bin is the special folders of windows on the hard disk to store deleted files and folders. These files or folders can be restored from the Recycle Bin to their original location if required for use. But you can set the Recycle Bin setting that the files and folders are deleted from hard disk are not placed in the Recycle Bin. So with the help of windows registry editor you can set the Recycle Bin to always delete items.

Follow the given steps to edit computer registry for Recycle Bin:

1.First click on Start button then type Regedit in Run option.

2.Here locate the location to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ Explorer\BitBucket

3.Here in right side panel, double click on NukeOnDelete and set its value 1.
Now close the registry editor and restart your computer after any changes to go into effect.

Sticky Menus

Normally when you move the mouse over the Start Menu / Programs, it will automatically cascade and show the submenus.
If you want them to open only when you actually click on them:

1.Start Regedit

2.Go to HKEY_CURRENT_USER \ Control Panel \ Desktop

3.If if it not already there, create a string called MenuShowDelay

4.Give it a value of 65534

Tips to speed up the Start Menu

If you are still working with old or slow computer but don't worry, you can give surprise to your friends with some changing in windows registry. Edit your computer registry keys to speed up your computer start menu, because the default speed of start menu is slow. After these changes your computer start menu will response like latest computer.

Follow the given steps to change the speed of Start Menu.

1.First click on Start button then type Regedit in Run option.

2.In Registry Editor panel go to the path:

HKEY_CURRENT_USER \ Control Panel \ Desktop \ MenuShowDelay

3.By default the value "MenuShowDelay=400", but you can set value between 0 to 400. Now put the value "MenuShowDelay"=0 to speed up.

4.Now close the registry editor and restart your computer after any changes to go into effect.

Increase the list of recently opened documents history

In windows XP, you can increase the list of recently used documents in start menu. By default windows XP display the shortcuts of last fifteen programs on recent documents list in start menu but you can increase this value with your required input value. However this tip is very useful for all new computer users because they can easily access their required documents from last visited documents history. This trick will work in nearly all of the windows versions like windows 2000, XP and 2003.

Follow the given steps for configuration to increase the list of recently opened documents:

1.To edit the computer registry, first you should log onto your computer with administrative rights.

2.Click Start button and type regedit in Run option then press Enter for next.

3.Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies

4.Now in left side panel, click right to create a new Key value with the name Explorer under "Policies" area.

5.Now explore the full path like:

Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

6.Now in right side panel, click right to create a new DWORD value with the name MaxRecentDocs and then set values with your required input value.

7.In this case, we are trying to set input value to 30 and press Ok button.

8.But next time, if you want to disable this functionality then simply change the value of data box to 15 or delete the MaxRecentDocs DWORD item.

9.Now close the registry editor and restart your computer after any changes to go into effect.

Common reasons of Windows failure

You can find out the reasons why there was a sudden crash of your windows. Microsoft criticizes that half of the windows failure due to third party software installed on that computer, but there are some common reasons of windows failure like User behavior, BIOS and Driver Updating, Software Problems (install and uninstall process) and Shared information (Windows shared libraries).
By editing the windows registry keys, you can find out the system failure reasons. But always export or backup the whole windows registry keys on backup drive before editing. Because any mistake in Registry can cause serious problem in your computer to run properly.

Follow the given steps to edit computer registry for log file:

1.First click on Start button then type Regedit in Run option.

2.In registry editor panel change the DWORD value shutdownreasonUI to 1 in the given key:
HKEY_LOCAL_MACHINE\SOFTWARE\ Microsoft\Windows\CurrentVersion\Reliability

3.Now after reboot the system, you can check the system log file (Control Panel, Administrative Tools, Logfiles) to find out the reasons of system failure.

Modifying Default Desktop Icons

1.Start Regedit

2.Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ explorer \ Shell Icons

3.The default icons are numbered in the right panel from 0-40

4.Double click on the number of the particular icon you want to change. See the chart below.

5.Enter the name of the icon file you want to use followed by the number of the icon in that file.

Note: The numbering starts with zero.

6.If you use a single .ICO file, it should be followed by a 0.

e.g. - filename.dll,4 - This would actually be the 5th icon since it starts with 0.

7.Make sure you delete the hidden file C:\WINDOWS\SHELLICONCACHE


Below is a reference for the icons I've been able to figure out:

0 - Default Icon
1 - Default Document
2 - Application
3 - Closed Folder
4 - Open Folder
5 - 5 1/4 Drive
6 - 3 1/4 Drive
7 - Removable Drive
8 - Hard Drive
9 - Network Folder
10 - Network Offline
11 - CD
12 - RAM Drive
13 - Entire Network
15 - My Computer
16 - Printer
17 - Network Neighborhood
18 - Network Workgroup
19-27 are the Start Menu icons
19 - Programs
20 - Desktop
21 - Settings
22 - Find
23 - Help
24 - Run
25 - Suspend
27 - Shutdown

28 - Share
29 - Shortcut
31 - Recycle Bin (Empty)
32 - Recycle Bin (Full)
33 - Folder, Dial-Up Networking
34 - Desktop
36 - Program Group
40 - Audio Card

In addition, you can change:

*My Computer - HKEY_CLASSES_ROOT\ CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}

*Network Neighborhood - HKEY_CLASSES_ROOT\ CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}

*InBox - HKEY_CLASSES_ROOT\ CLSID\{00020D75-0000-0000-C000-000000000046}

*Recycle Bin - HKEY_CLASSES_ROOT\ CLSID\{645FF040-5081-101B-9F08-00AA002F954E}

Hide user account from the windows XP welcome screen

Follow the given steps to hide any specific user account on welcome screen:

To use this feature, you will need to be logged into your computer with administrative rights.

1.Click Start button and type regedit in Run option then press Enter for next.

2.Here locate the location to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\

Winlogon\SpecialAccounts\UserList

3.Here in right side panel, right click to create a new DWORD Value with the name of account to be hidden - the name matches the users name exactly.

4.To modify the "Value data" information as DWORD Value 0 to hide the account and 1 to display the user then click on Ok button.

5.Now close the registry editor and restart your computer after any changes to go into effect.

Note:But next time, if you want to enable specific user account on welcome then simply change the value of data box to 1 or delete the DWORD Value item

How to prevent users from writing to USB drives?

Today USB drive also known as keychain drive is becoming the most popular removable storage device to move data to different locations. USB drives are available in the market with different features, for example password protected, compatible with all windows versions and extra storage capacity (up to 65 GB).

A common security issue at organizations is how to prevent their workers to write data onto USB drives using their PCs, because a user can easily move confidential data for other location.


If you have windows XP with SP2, then you can disable the writing option to USB drives.

Follow the given steps to disable the USB writing option:

1.To edit the computer registry, first you should log onto your computer with administrative rights.

2.First click on Start button and type "Regedit" in Run option.

Here locate the location to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

3.Here in right side panel, click right to create a key with the name "StorageDevicePolicies".

4.Now in left side panel, select "StorageDevicePolicies" key, again right click to create new DWORD value then label it "WriteProtect".

5.Set its value to "1". But again enable this option set its values "0".

6.Now close the registry editor and restart your computer after any changes to go into effect.

Disabling the Blinking Cursor in Computer Applications

If you are using any computer application, for example MS Word or MS FrontPage and you did not like blinking of cursor. You can stop the cursor from blinking in these applications to edit your computer registry keys, but be careful to work with computer registry.

Follow the given steps to stop cursor from blinking:

First click on Start button then type Regedit in Run option.

Here locate the location to:

HKEY_CURRENT_USER\Control Panel\Desktop

Here add the string value with name CursorBlink and value -1

At the end restart your computer for this change.

How to stop any particular program to appear in frequently used programs list?

Follow the given steps for configuration to stop any particular program to appear in frequently used programs list:

To edit the computer registry, first you should log onto your computer with administrative rights.

Click Start button and type regedit in Run option then press Enter for next.



Navigate to HKEY_CLASSES_ROOT\Applications\Program name.exe

Here are the executable file names for others commonly used programs:
For MS Word = windword.exe

For MS Excel = excel.exe

For Explorer = iexplorer.exe

For Notepad = notepad.exe

For Media Player = wmplayer.exe






In this case, we are trying to control windows media player is never showing on the most frequent used program list when we play any movie

Now in right side panel, click right to create a new String value with the name NoStartPage and close registry editor.

But next time, if you want to disable this functionality then simply delete the NoStartPage string item.

Now close the registry editor and restart your computer after any changes to go into effect
Tricks © 2008-2009.