Re: How to disable right click on server desktop
Hi,
The command for New-->Shortcut is stored here in the registry:
HKCR\.lnk\ShellNew
Below is one technique you can use:
1. Create a file using Notepad with the following contents:
>>> Begin file contents below this line
@echo off
del %1
exit
>>> End file contents above this line
2. Save it in C:\WINDOWS\system32 as dellnk.cmd
3. Right-click on your desktop and choose New-->Shortcut,
enter dellnk.cmd, click Next, click Finish.
4. Right-click on the new shortcut and choose Properties.
Change the Run setting to Minimized and then click OK.
5. *Copy* the new shortcut to the C:\WINDOWS\system32 folder
6. Open up regedit and navigate to the following key:
HKCR\.lnk\ShellNew
7. Right-click on the Command REG_SZ value and choose
Rename. Change the name to Command.backup
8. Right-click on the right-hand pane and choose New-->String
Value, enter Command for the name
9. Double-click the new Command value you just created
and enter the following:
dellnk.cmd.lnk "%1"
10. Click OK to save your changes. Test by right-clicking on
your desktop and choosing New-->Shortcut. If it is working
properly a New Shortcut file should appear momentarily but
quickly disappear.
11. If you want to restore the default shortcut behavior you can
restore the original value that you saved as Command.backup
If you want to disable shortcuts *only* for non-admins then you
could use a logon script or similar to create the above registry
entry in each non-admin user's HKCU\Software\Classes
*instead* of modifying HKCR.
-TP
Davey wrote:
> I want to disable on my W2003 terminal servers the users ability to
> right click on the desktop and select New- Shortcut and access things
> I don't want them to
>
> Does anyone know how to do this
>
> I don't want to disable all right click funtionality