Sunday, March 20, 2011

Hidden Registry Setting for "Sendto" menu in window 7

The Send To menu in Windows allows you to quickly send a file to different locations including a floppy disk, CD-RW/DVD-RW, or to a third-party application. We’ve covered a few articles on the "Send To" menu before, and here are the three new and undocumented registry edits that can be used in Windows 7.

DelaySendToMenuBuild

By default when you right-click on a file or folder in Windows 7,  it enumerates the items in your Send To folder to build the Send To menu. By setting the DelaySendToMenuBuild DWORD value data to 1 you can change the default behavior, so that Send To menu entries are generated only when you click the "Send To" menu, rather than on every right-click.
Also, you may notice that the context menu pops up little bit faster than before.
DelaySendToMenuBuild (REG_DWORD value) is implemented in the following registry location:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer

NoSendTo

The NoSendTo value can be used to hide the "Send To" menu in the right-click menu for a file type. It’s implemented in the file type’s ProgID. For example, to hide the "Send To" menu for text files (.txt), you’ll have to create a NoSendTo (REG_SZ) value in this location:
HKEY_CLASSES_ROOT \ txtfile


NoDrivesInSendToMenu

The Send To menu displays removable drives by default, as shown below:

By enabling the NoDrivesInSendToMenu (DWORD) value, you can hide drive-letters from the Send To menu without actually hiding the drives in Windows Explorer environment. This edit works in Windows 7 and Windows Vista, and is explained in this article and also here. It’s implemented in this registry location:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer

* You’ll need to logoff and login back for this registry edit to take effect.


Error "Registry editing has been disabled by your administrator" when you open the Registry Editor in Windows Vista

Symptom

When you attempt to start the Registry Editor (regedit.exe) in your Windows Vista system, you may receive the following message:
Registry editing has been disabled by your administrator

Resolution

If the above error message is shown in a standalone system, then it may be a result of Malware infection. It is also possible that the DisableRegistryTools policy had been enabled by a third-party tweak program which you may be using. It's highly advisable to follow up with a complete system checkup for Virus and Malware, especially when you're unsure about the cause.
Note: If your system is connected to a domain, your network administrator may have enabled the DisableRegistryTools Policy setting. In that case, you'll need to contact the network administrator to relax this restriction, if need be.

Method 1 - Using Group Policy Editor

If you are using an edition of Windows Vista (Windows Vista Business, Enterprise and Ultimate editions) which includes the Group Policy Editor, follow these steps:
  • Click Start, type gpedit.msc in the Search box, and press ENTER
  • Go to the following branch:
User Configuration | Administrative Templates | System
  • Double-click Prevent access to registry editing tools
  • Set it as Not Configured
Important: If it's already set to Not Configured, set it to Enabled and click Apply. Then repeat the steps and revert the setting back to Not Configured. This removes the registry based policy if set already.

Method 2

This method should work in all editions of Windows Vista.
  • Download reg_enable.vbs , and save it to Desktop
  • Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  • Switch to your Desktop directory by typing the following command, and then pressing ENTER:
cd /d %userprofile%\desktop
  • Then, type the following command and press ENTER 
wscript.exe  reg_enable.vbs
  • Type EXIT to close the Command Prompt window.
If everything worked fine, the DisableRegistryTools policy should have been removed by now. See if you're able to launch Regedit.exe now.