Group Policy to add / remove application from Desktop Context Menu
hi, please me add shut-down, log off, hibernate command desktop context menu through group policy.
i using windows server 2008 r2 standard 64 bit.
thanks in advance.
hi ashish,
far know, don’t have such built-in group policies “add / remove application desktop context menu”. however, can make creating related registry keys. can customize icons each item.
here example reference:
to add shut down, log off , hibernate desktop context menu.
windows registry editor version 5.00
[hkey_classes_root\desktopbackground\shell\shut down]
"icon"="shell32.dll,-28"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\shut down\command]
@="shutdown.exe -s -t 00 -f"
[hkey_classes_root\desktopbackground\shell\log off]
"icon"="input.dll,1"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\log off\command]
@="shutdown.exe -l"
[hkey_classes_root\desktopbackground\shell\hibernate]
"icon"="powrprof.dll,1"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\hibernate\command]
@="shutdown.exe -h"
to remove these 3 items desktop context menu.
windows registry editor version 5.00
[-hkey_classes_root\desktopbackground\shell\shut down]
[-hkey_classes_root\desktopbackground\shell\log off]
[-hkey_classes_root\desktopbackground\shell\hibernate]
copy , paste above lines of code notepad, , save them .reg files. then, can integrate these files gpo, example startup group policy, deploy computer.
hope helps.
far know, don’t have such built-in group policies “add / remove application desktop context menu”. however, can make creating related registry keys. can customize icons each item.
here example reference:
to add shut down, log off , hibernate desktop context menu.
windows registry editor version 5.00
[hkey_classes_root\desktopbackground\shell\shut down]
"icon"="shell32.dll,-28"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\shut down\command]
@="shutdown.exe -s -t 00 -f"
[hkey_classes_root\desktopbackground\shell\log off]
"icon"="input.dll,1"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\log off\command]
@="shutdown.exe -l"
[hkey_classes_root\desktopbackground\shell\hibernate]
"icon"="powrprof.dll,1"
"position"="bottom"
[hkey_classes_root\desktopbackground\shell\hibernate\command]
@="shutdown.exe -h"
to remove these 3 items desktop context menu.
windows registry editor version 5.00
[-hkey_classes_root\desktopbackground\shell\shut down]
[-hkey_classes_root\desktopbackground\shell\log off]
[-hkey_classes_root\desktopbackground\shell\hibernate]
copy , paste above lines of code notepad, , save them .reg files. then, can integrate these files gpo, example startup group policy, deploy computer.
hope helps.
regards,
ethan hua
please remember mark replies answers if help, , unmark answers if provide no help. if have feedback technet support, contact tnmff@microsoft.com
Windows Server > Windows Server General Forum
Comments
Post a Comment