I want to write a logon script that will set specific Context Menu items on a machine. Basically if you look in your network neighborhood and browse the computers in your network, the context menu should have an option to RDP Connect to it or Shutdown.
For instance the item would hold a command like: "mstsc /v:%clickeditem% /console
or: shutdown -s %clickeditem%
Now I realise the keys to these are in the registry so the logonscript would have to set some registry values to achive this. So far the only registry key I've found is the one that relates to the "My Network places" context menu which is:
Code:
HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell
so you can make this:
Code:
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\Shutdown]
"SuppressionPolicy"=dword:4000003c
@=hex(2):53,00,68,00,75,00,74,00,64,00,6f,00,77,00,6e,00,20,00,54,00,68,00,69,\
00,73,00,20,00,43,00,6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\Shutdown\command]
@=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,00,5c,00,53,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,75,00,74,00,\
64,00,6f,00,77,00,6e,00,2e,00,65,00,78,00,65,00,20,00,2d,00,73,00,20,00,2d,\
00,6d,00,20,00,5c,00,5c,00,54,00,68,00,69,00,73,00,20,00,43,00,6f,00,6d,00,\
70,00,75,00,74,00,65,00,72,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\RDP]
"SuppressionPolicy"=dword:4000003c
@=hex(2):52,00,65,00,6d,00,6f,00,74,00,65,00,20,00,44,00,65,00,73,00,6b,00,74,\
00,6f,00,70,00,00,00
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\RDP\command]
@=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,00,5c,00,53,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,00,74,00,73,00,\
63,00,2e,00,65,00,78,00,65,00,20,00,2f,00,63,00,6f,00,6e,00,73,00,6f,00,6c,\
00,65,00,00,00
Any help would be appreciated