This Web Site is worth looking at: Group Policy Registry Table
Code:
$Explorer = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
WriteValue($Explorer,"NoViewContextMenu","1","REG_DWORD")
Quote:
Description
Removes shortcut menus from the desktop and Windows Explorer. Shortcut menus appear when you right-click an item.
This entry stores the setting of the Disable Windows Explorer's default context menu Group Policy. Group Policy adds this entry to the registry with a value of 1 when you enable the policy. If you disable the policy or set it to Not configured, Group Policy deletes the entry from the registry and the system behaves as though the value is 0.
Value Meaning
0 (or not in registry) The policy is disabled or not configured. Shortcut menus appear.
1 The policy is enabled. Shortcut menus are hidden.
When the value of this entry is 1, menus do not appear when you right-click the desktop or when you right-click the items in Windows Explorer. This value does not prevent users from using other methods to issue commands available on the shortcut menus.
Edited by Richard Farthing (2004-01-16 05:58 PM)