I get error while formatting pendrive "Disk is write protected".
for removing this i tried
regedit->System->control-> storedDevicePolicies->WriteProtect->HexadecimalValue 0
but it doesnot work.
Please Help

Sanity check: make sure usb key doesn't have a read/write switch on it in wrong position.

Does it write in any other computer?

No,it is write protected in any other computer.
I can't past any data in pendrive.
but i can copy data from pendrive and paste in my computer

The registry key should be Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies .... you have storedDevicePolicies