Link to home
Start Free TrialLog in
Avatar of lgropper
lgropper

asked on

DISABLE Right-click in windows XP

i've been searching around and haven't had much luck in what im looking for.

I'm Locking down a few hundred computers, and i need the right-click function disabled on the desktop.

also if possible disabling right-click in windows explorer but NOT my computer and my network places

please help
Avatar of jhance
jhance

I don't think there is any Windows setting or registry value you can change to accomplish this quickly and easily, nor have I seen any software to do this.  It's kind of an odd request.

I'm sure it can be done using the same techniques that keystroke loggers use.  They capture the Windows message that they are interested in and do their thing.  In your case you would want to capture the WM_RBUTTON messages and examine the application they are coming from.  If it's one of the non-allowable apps, you would "eat" the message, otherwise you'd pass it on to Windows for normal processing.
Avatar of lgropper

ASKER

how abuot removing things like:

-rename
-copy
-paste

etc when you right click
I suppose anything is possible.  To do that you're going to have to intercept the message that create the context menu and disable or remove the undesirable items.  Not impossible but certainly non-trivial.
how would i go about doing this.  i just want to disable some of the right clicking features not all of them, just the most important ones, EX copy, deleting and cutting
ASKER CERTIFIED SOLUTION
Avatar of Yancey Landrum
Yancey Landrum
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i attempted to  

To Enable/Disable for Current User

Registry Key:  HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Data Type: DWORD
Value Name: NoViewContextMenu
Value Data: [0 = Disabled / 1 = Enabled]
Exit Registry and Reboot

but it seems that you cannot right click anywhere including my computer,internet explorer and my network places.
sorry about that i don't have internet explorer on my desktop so i'm not sure if it work or not, but my computer doesn't let your right click
Yeah, that's why I said, "we can disable the context menu, but it will happen for everything except Internet Explorer." It is a global setting.

Also, it appears that you cannot disable copy, paste, or rename with the tools I mentioned. As I think about it more, even if we disable the menu items the actions themselves can still be accessed via keyboard shortcuts. What we want to do instead is stop the behavior itself; no easy task.
any ideas on how to stop this function via the keyboard and also using the right clicking the mouse. I'm aslo wondering if theres another way other then right clicking to get for example manage, properites, Map network from my computer and my network when the right click is disable, thanks sorry to bother you but i must find a way in order to do this
I highly doubt there is any method of removing copy/paste as it is a core function to Windows. Not allowing access to properties and other "config" dialog's is doable, its been awhile but I believe its done in the registry.
lgropper,

It is possible to disable all the keyboard shortcuts; therefore, a combination of disabling the keyboard shortcuts and disabling the right-click menu might solve your problem.  If you have Windows 2000 the following website explains thoroughly how to disable the keyboard shortcuts.

http://support.microsoft.com/?kbid=181348

Or, you can use this program

http://malektips.com/2000wt0013.html

If you have Windows XP, I am still trying to find a method to use.  

Hope this helps,
freshprince27
I recently had to remove right click function from several comps.
I used TweakXP

http://tweakxp.com/tweakutility/

its not free but i bought it. Its great
I created the "NoViewContextMenu" DWORD entries for HLKM and HKCU, and set the value to 1. The only place where this appeared to have any effect at all on my WinXP SP2 system was in Windows Explorer. Everywhere else was totally unaffected. From what I read above, this is not the expected behavior.

What I am really trying to do is to disable the right-click menu on an Adobe PDF that is displayed through Internet Explorer, and I cannot use any means of restriction in the PDF itself to do this. Any thoughts?

Thanks!