Print View

How to remove the Screen Resolution and Personalize context menu items from the desktop

Issue

In a secured Windows Server 2008 R2 Remote Desktop Services server it may be desirable to remove the Screen Resolution and Personalize items from the desktop context menu.

Resolution

This can be achieved by deleting the following registry keys:
HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display
HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize


This can be scripted as follows:
subinacl /subkeyreg HKEY_CLASSES_ROOT\DesktopBackground\Shell /setowner=%USERDOMAIN%\%USERNAME%
subinacl /subkeyreg HKEY_CLASSES_ROOT\DesktopBackground\Shell /grant=%USERDOMAIN%\%USERNAME%=F
REG DELETE HKEY_CLASSES_ROOT\DesktopBackground\Shell\Display /F
REG DELETE HKEY_CLASSES_ROOT\DesktopBackground\Shell\Personalize /F


Subinacl is a part of the Resource Kit and available for download from the Microsoft website.

References

Products

Microsoft Windows Server 2008 R2 RTM

Created: 28th July 2010
Updated: 28th July 2010

Print View

© 2005-2024 Jamie Morrison