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

Thursday, October 13, 2011

bench3

Enable and Disable USB Port Through Windows Registry | Step-by-Step Instructions

As per the Microsoft knowledge base article 823732 which contains instructions on how to disable USB storage access for a certain group of users this disabling and re-enabing of USB ports is based on a simple registry entry.

Important: Windows Registry is a weak link in the operating system’s stability and robustness. It’s remarkably easy to damage, but very difficult to repair... Backup your registry before you start modifying the registry entries. Read my other article to know how to backup the registry.

To disable the access to USB port, in windows XP and 2000:

  • Click Start, and then click Run.
  • In the Open box, type regedit, and then click OK.
  • Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE \ SYSTEM\CurrentControlSet \ Services \ UsbStor

  • In the right pane, double-click Start.
  • 5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.
  • Quit Registry Editor.
Step-by-Step To Enable and Disable USB Port Through Windows Registry

To re-enable a disabled port:

  • Click Start, and then click Run.
  • In the Open box, type regedit, and then click OK.
  • Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ UsbStor

  • In the right pane, double-click Start.
  • In the Value data box, type 3, click Hexadecimal (if it is not already selected), and then click OK.
  • Quit Registry Editor.

However, there can be other ways too to bypass this issue, one of the easiest is to invest in a PS2 to USB port convertor.

Read More

Sunday, February 6, 2011

bench3

Unable To Write Or Delete Data On External USB Disk

Unable to Write/Delete data on External USB disk in Windows 7

When i connect my External USB WD hdd to a Windows  PC it is successfuly able to connect, it is able to read copy the data but i am not able to delte/write any data to it. I Connect the same HDD to Windows XP sp2 system and it works fine there. Seems like the HDD got only read only access in windows 7. How will be able to write/delete data from it ?

Solution:

First of all, have you install the following hotfix for USB issue? Most USB issue can be fixed by it.
http://support.microsoft.com/kb/976972

if the issue persists after installing the hotfix, please follow the steps mentioned below…

Regarding the hotfix, I think you can install it directly. The hotfix will replace/update some USB related system files which would be helpful for USB related issues.  Additional, you can also backup your files on the HDD and format it under Windows 7 as a quick fix, do you still have the same issue now?

Actually, I have had this type of issue even before for my other Device. And format is a quick fix to me (please remember to formant it under Windows 7). If you do not have other free space, you can consider copy those data to another PC (of your friends or the PC in your office).

Meanwhile, what would happen when you try to save file to this USB HDD? If you receive error message stating "The disk is write-protected.  Remove the write-protection or use another disk”, please remove write protection from your USB flash drive using the below method:

  • 1. Open start menu, in the search bar type REGEDIT and press enter. This will open the registry editor.
  • 2. Navigate to the following path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

Note: If the registry key StorageDevicePolicies does not exist, you will need to create it manually.

  • 3. Highlight StorageDevicePolicies, and then create a New DWORD (32-bit) Value named as WriteProtect.
  • 4. Double click the key WriteProtect in the right window and set the value to 0 in the Value Data Box and press OK button
  • 5. Restart your computer and try copying files into your USB drives.

If the issue persists, you may have to run the following command as a fix:

  • 1. Start > search bar -> CMD and press enter
  • 2. type< diskpart
  • 3. type< list disk
  • 4. type< select disk # (# is the number of the USB HDD you’ve pluged in)
  • 5. type< attributes disk clear readonly

Do you still have the same issue after reboot? If so, backup your files on the HDD and format it under Windows 7 as a quick fix.

Addtionally, I would like to suggest you checking the permissions of the disk. If it is read-only, try to take ownership of the disk and edit the permissions to have write/delete privilege. How to take ownership of a file or folder

Edit the permissions:

  • 1) Right click the drive.
  • 2) Hightlight Security tab.
  • 3) Select the current user.
  • 4) Click Edit and check the Allow box of Full control.
  • 5) Click Apply and OK.
Read More

Saturday, January 15, 2011

bench3

Encrypt And Decrypt From The Shortcut Menu In Windows

As you know, one of the perks of using Windows 7 (Professional, Enterprise, or Ultimate) is that you can encrypt files and folders, protecting them from people who try to open them from across the network or using a different account. If you use this feature quite a bit, however, you’ll quickly grow tired of opening the Properties box every time you want to encrypt something. Wouldn’t it be much more convenient if the Encrypt and Decrypt commands were right there in the shortcut menu that appears when you right-click an icon? Of course it would. To make it so, do this:

Warning: before you try to modify windows registry, learn how to backup windows registry. Also try to have a backup of your registry at this stage before you proceed. Read More On How To Backup Windows Registry.

  • Navigate to: HKEY_CURRENT_USER->Software->Microsoft->Windows->CurrentVersion->Explorer->Advanced.

Now, for this trick, you’re going to need a key that doesn’t actually exist yet. Fortunately, it’s very easy to create a new key.  In this case,

  1. Just right-click the Advanced “folder,” and then,
  2. From the shortcut menu, choose New->DWORD (32-bit) Value. You see “New Value #1” appear in the right side of the window, ready to be renamed;
  3. Type EncryptionContextMenu, and then press Enter.

The birth of a new Registry entry is a good opportunity to name it, but you can rename any value or key at any time, just the way you’d rename a file icon. That is, you can open the renaming rectangle by right-clicking or by pressing F2.

  • Double-click this value on the right side: EncryptionContextMenu.
  • Make this change: In the “Value data” box, type 1.
  • Wrap up: Click OK and quit regedit.

When you right-click any file or folder icon, you’ll see the new Encrypt command in the shortcut menu. (Or, if it’s already encrypted, you’ll see a Decrypt command.)

Read More

Friday, December 24, 2010

bench3

Virtualization Tips For Windows 7

USB External Drives : Setting The Performance Mode Of The USB Device:
If you bought yourself a nifty USB external hard drive to hold your VM files, you may find it sometimes acts a little sluggish, even occasionally crashing the VM host app (VMware, Virtual Box, whatever). One thing you might want to try is setting the performance mode of the USB device. To do this on Windows 7, right-click on the drive assignment in Windows Explorer, and select 'Properties". Then click the Hardware tab, and select the specific device in the disk drives list. Then click the "Properties" button at the bottom. Then click the "Change Settings" button, select the "Policies" tab and set the Removal policy to "Better performance" instead of "Quick removal"

Active Directory Synchronization
If your VM guests are joined to an AD domain and you find that the guests drop off the domain every few weeks, it's most likely due to the computer account password synchronization getting wacked. This can happen if the machines are powered off longer than the default resync cycle period, or if you reset (roll-back) to a snapshot from prior to the last resync. You can modify this as follows:

HKLM\System\CurrentControlSet\Services\Netlogon\Parameters\DisablePasswordChange

Change this from 0 to 1.

If you are working with snapshots, you may need to implement this on each snapshot up to the parent state.
Read More
bench3

0x8002801c How To Register OCX Files in Windows 7 And Vista

Registering MSCOMCT2.OCX (Microsoft DatePicker) (with the aim of using this control on any of your development / application) may take you to an error code 0x8002801c.
The c:\windows\sysWOW64\mscomct2.ocx module has been loaded, but the call to DllRegisterServer has failed, with the error code 0x8002801c"
Registering OCX Files In Windows 7 and Windows Vista:
Note: You need to copy the MSCOMCT2.OCX file to c:\windows\sysWOW64 not c:\windows\system32. You then can register it by running from the command prompt or run in the start menu regsvr32 c:\windows\sysWOW64\mscomct2.ocx and it should register although make sure that you run regsvr32 with administrator privileges.
Copy MSCOMCT2.OCX to the C:\windows\SysWOW64 directory. Please note that when you are using Windows 64Bit, you need to copy to SYSWOM64 Folder in Windows. And incase if you are using 32 Bit Windows, you wont find any folder like SYSWOW64. So, you need to copy the OCX file to Windows / System.

How to Register .OCX File From Command Prompt in Administrative Mode
  1. Click the Start button, then in the "Start Search" box, type CMD but DO NOT press Enter yet.
  2. In the list above, under "Programs" right-click on CMD that appears above and choose "Run as Administrator" and click "Continue".
  3. In the open window, type the following command and press Enter:
regsvr32 c:\windows\sysWOW64\mscomct2.ocx
Hope, this will help. The above method is explained to register MSCOMCT2.OCX File, you can register any OCX File using the above method. The only thing is, you need to copy the file to the SYSwow64 folder and then use the command prompt in Administration Mode and give the folloing command.
regsvr32 c:\windows\sysWOW64\filename.ocx
Note: File name can be substituded with the OCX file you need to register.
Read More

Wednesday, December 1, 2010

bench3

Problems Opening .Exe, .Com, And .Lnk File Extensions

Problems While Opening Files with .exe, .com, and .lnk Extensions: When you try to open files with .exe, .com, and .lnk file name extensions, the files will not open and the Open With dialog box is displayed. This problem usually occurs when your computer is running in Safe Mode and these extensions have default registry entries.

Cause of the Error: Problems with these extensions occur if either one or both of the following conditions holds true:
  • The registry entries of the file name extension are either corrupt or missing.
  • Your computer is infected by some type of virus.
Resolution Steps
Warning: The steps discussed below require you to work with the Windows registry. You must be very careful while editing the registry because there is no undo option in Registry Editor and any mistakes in registry edits may render your PC unbootable. This is the reason why, it is recommended that you back up the registry before you make any edits to it
  • 1. Restart you computer.
  • 2. When the computer is starting up, press F8 and then from the options displayed, scroll down and select Safe Mode.
  • 3. When your computer opens is Safe mode, open Start menu, select Run, and then type the following command in the Open box and press Enter.
command /c copy %Windir%\regedit.exe regedit.com
Note: Because of the problem you will be unable to launch the Registry Editor window by running the regedit command because it has the “.exe” extension. Running this command will create a copy of the regedit.exe command with .com extension. And, you can now edit the registry by running the new regedit.com file.
  • 4. After copying the regedit.exe file to regedit.com, open Start menu, select Run, type regedit, and then select OK. This will open the Registry Editor window by running the regedit.com file.
  • 5. In Registry Editor, search for the following registry entries, for the file name extensions that are not working and compare them with same entries on another working computer:
HKEY_CLASSES_ROOT\.< FileNameExtension >
HKEY_CLASSES_ROOT\< FileNameExtension >file
HKEY_CLASSES_ROOT\.< FileNameExtension n>\<SubFolder>
For example if you are unable to open .exe files on your computer, compare the values of the following registry keys with the values of a working computer with similar configuration.
HKEY_CLASSES_ROOT\.com
HKEY_CLASSES_ROOT\comfile
HKEY_CLASSES_ROOT\.com\PersistantHandler
  • 6.  If the registry entries on both the computers is not same, then restore the default values on the computer that is generating the error by doing the following:
    • 1. On the right pane of the Registry Editor window, right-click on the incorrect registry value, and then select Modify.
    • 2. In the Edit StringName dialog box that is displayed, type in the correct value that is available on the working computer, and then click OK.
  • 7. If the problem is still not resolved, navigate to the following registry key, and note down the CLSID number.
HKEY_CLASSES_ROOT\.com\PersistantHandler
Note: Double-click on the value of this key, the CLSID will be in the Value data field, comprising a log set of alphanumeric characters enclosed in braces ({}).

Next, open the following registry key and compare its value with the value of HKEY_CLASSES_ROOT\.com\PersistantHandler key. If these values are different copy the value from the CLSID key and paste it in the Value data box of the PersistantHandler key.
HKEY_CLASSES_ROOT\CLSID\
Read More