デスクトップのコンピューター アイコンにメニューを追加する方法です。
基本的になんでも追加できますが、今回は管理ツールの中でよく使う、イベントビューア、サービス、タスク スケジューラー、ディスクの管理、デバイスマネージャーを設定します。
HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shellキーをバックアップ。
必要な機能を編集で取捨選択して reg ファイルを実行。
Windows Registry Editor Version 5.00
; Find
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\find]
"LegacyDisable"=-
"Icon"="SearchFolder.dll"
; Disk Management
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt]
@="@dmdskres.dll,-65535"
"Icon"="dmdskres.dll"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt\Command]
@="mmc.exe diskmgmt.msc"
; Device Manager
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr]
@="@devmgr.dll,-4"
"Icon"="devmgr.dll,4"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr\Command]
@="mmc.exe /s devmgmt.msc"
; Event Viewer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr]
@="@miguiresource.dll,-101"
"Icon"="miguiresource.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr\Command]
@="eventvwr.exe"
; Services
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service]
@="@filemgmt.dll,-2204"
"Icon"="filemgmt.dll"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service\Command]
@="mmc.exe /s services.msc"
; Task Schedule
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd]
@="@miguiresource.dll,-201"
"Icon"="miguiresource.dll,1"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd\Command]
@="mmc.exe /s taskschd.msc"
; Find
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\find]
"LegacyDisable"=-
"Icon"="SearchFolder.dll"
; Disk Management
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt]
@="@dmdskres.dll,-65535"
"Icon"="dmdskres.dll"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt\Command]
@="mmc.exe diskmgmt.msc"
; Device Manager
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr]
@="@devmgr.dll,-4"
"Icon"="devmgr.dll,4"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr\Command]
@="mmc.exe /s devmgmt.msc"
; Event Viewer
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr]
@="@miguiresource.dll,-101"
"Icon"="miguiresource.dll,0"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr\Command]
@="eventvwr.exe"
; Services
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service]
@="@filemgmt.dll,-2204"
"Icon"="filemgmt.dll"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service\Command]
@="mmc.exe /s services.msc"
; Task Schedule
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd]
@="@miguiresource.dll,-201"
"Icon"="miguiresource.dll,1"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd\Command]
@="mmc.exe /s taskschd.msc"
元に戻す
Windows Registry Editor Version 5.00
; Find
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\find]
"LegacyDisable"=""
"Icon"=-
; Disk Management
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt]
; Device Manager
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr]
; Event Viewer
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr]
; Services
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service]
; Task Schedule
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd]
; Find
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\find]
"LegacyDisable"=""
"Icon"=-
; Disk Management
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Diskmgmt]
; Device Manager
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\devmgr]
; Event Viewer
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Eventvwr]
; Services
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Service]
; Task Schedule
[-HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Taskschd]