Page 1 of 1 1
Topic Options
#111870 - 2004-01-15 08:14 PM Disable Right Clicking options on start/programs
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
How do I disable right clicking on the start/programs or start/any other folder in windows 2k server? I'm not looking for disabling right clicking on the start button.

Thanks..

Top
#111871 - 2004-01-15 08:21 PM Re: Disable Right Clicking options on start/programs
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Sorry, it isn't Kix.. Maybe you can use it


Code:
 

<title>No rightmouse</title>
<script language="JavaScript">
function disable_right_click(e)
{
var browser = navigator.appName.substring ( 0, 9 );
var event_number = 0;
if (browser=="Microsoft")
event_number = event.button;
else if (browser=="Netscape")
event_number = e.which;

if ( event_number==2 || event_number==3 )
{
alert ("Right mousebutton disabled.");
return (false);
}

return (true);
}

function check_mousekey ()
{
var mouse_key = 93;
var keycode = event.keyCode;

if ( keycode == mouse_key )
alert ( "Right mousebutton disabled." );
}

function trap_page_mouse_key_events ()
{
var browser = navigator.appName.substring ( 0, 9 );

document.onmousedown = disable_right_click;

if ( browser == "Microsoft" )
document.onkeydown = check_mousekey;
else if ( browser == "Netscape" )
document.captureEvents( Event.MOUSEDOWN );
}

window.onload = trap_page_mouse_key_events;
//--></script>
</head>



Edited by Co (2004-01-15 08:25 PM)
_________________________
Co


Top
#111872 - 2004-01-15 08:25 PM Re: Disable Right Clicking options on start/programs
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I don't think you can do this. Why would you?
_________________________
There are two types of vessels, submarines and targets.

Top
#111873 - 2004-01-15 08:35 PM Re: Disable Right Clicking options on start/programs
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
That's what i tought... you can use the script i posted only for webpages...

First I had the idea you could use some parts of it. like the key code. But there isn't any command you can use..



Edited by Co (2004-01-15 08:37 PM)
_________________________
Co


Top
#111874 - 2004-01-16 04:22 AM Re: Disable Right Clicking options on start/programs
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Go into GPEDIT.MSC and look at the desktop or explorer (don't remember which) and it should cover this.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#111875 - 2004-01-16 08:21 AM Re: Disable Right Clicking options on start/programs
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah.
_________________________
!

download KiXnet

Top
#111876 - 2004-01-16 03:14 PM Re: Disable Right Clicking options on start/programs
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I don't see any setting in GPEdit that pertains to disabling right-clicking on the START menu as described in the initial poster's question generating the requested behavior.
_________________________
There are two types of vessels, submarines and targets.

Top
#111877 - 2004-01-16 04:31 PM Re: Disable Right Clicking options on start/programs
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, next question is, what he wants this for?
_________________________
!

download KiXnet

Top
#111878 - 2004-01-16 04:50 PM Re: Disable Right Clicking options on start/programs
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
The admins who had built the server before had it set like that. These are terminal servers. They wanted to keep users from adding things to the menu.

Thanks for all of the posts.

Top
#111879 - 2004-01-16 05:14 PM Re: Disable Right Clicking options on start/programs
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Quote:

They wanted to keep users from adding things to the menu.



Okay, now we're slowly getting the real information. So, you want prohibit users from modifying the start menu? This is different that stating that you want to disable the right-click.

So, please go back to square one and restate what exactly yo try to accomplish, incl. the big picture.
_________________________
There are two types of vessels, submarines and targets.

Top
#111880 - 2004-01-16 05:17 PM Re: Disable Right Clicking options on start/programs
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
The way they had stopped people from altering the menu was by disabling right clicking after you click start..
Top
#111881 - 2004-01-16 05:29 PM Re: Disable Right Clicking options on start/programs
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Maybe they disabled the user's ability to modify the start menu? There are GPOs for that, see e.g. the Local Group Policy MMC.
_________________________
There are two types of vessels, submarines and targets.

Top
#111882 - 2004-01-16 05:37 PM Re: Disable Right Clicking options on start/programs
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
They can right click on the start button itself, but if they click on start and the menu pops up they can't right click it..
Top
#111883 - 2004-01-16 05:48 PM Re: Disable Right Clicking options on start/programs
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
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)

Top
#111884 - 2004-01-16 05:55 PM Re: Disable Right Clicking options on start/programs
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
Hmm I guess I didn't read your question corectly.

Quote:

I'm not looking for disabling right clicking on the start button.




Top
#111885 - 2004-01-16 06:09 PM Re: Disable Right Clicking options on start/programs
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
I think I found it. I had to rebuild the server about a month ago and didn't put it in the Terminal Servers OU. There is a group policy on the OU called "Prevent changes to Taskbar and start menu settings" that prevents the right clicking. I should've checked that earlier.

I do thank everyone for their posts though.

Thanks.

Top
#111886 - 2004-01-16 06:43 PM Re: Disable Right Clicking options on start/programs
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
May I ask you what the reason is why you want to disable this right clicking options?
_________________________
Co


Top
#111887 - 2004-01-16 06:57 PM Re: Disable Right Clicking options on start/programs
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Workstation lockdown so that users can't add/remove shortcuts?
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.084 seconds in which 0.037 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org