回答編集履歴
2
URL括り修正
answer
CHANGED
@@ -69,4 +69,4 @@
|
|
69
69
|
PowerShell上でレジストリへアクセスする方法。
|
70
70
|
[Working with Registry Keys](https://technet.microsoft.com/ja-jp/library/dd315270.aspx)
|
71
71
|
Get-Itemで取れるレジストリオブジェクトの仕様
|
72
|
-
[RegistryKey Class](https://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey(v=vs.110).aspx
|
72
|
+
[RegistryKey Class](https://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey(v=vs.110).aspx)
|
1
PowerShellで取得する場合について追記
answer
CHANGED
@@ -16,4 +16,57 @@
|
|
16
16
|
11.77.2.3
|
17
17
|
c:\program files\java\jre1.8.0_77\bin\ssv.dll
|
18
18
|
2016/03/21 14:53
|
19
|
-
```
|
19
|
+
```
|
20
|
+
|
21
|
+
|
22
|
+
追記
|
23
|
+
====
|
24
|
+
ちょっと興味があったので、`autorunsc -a i`ぽい動作をするPowerShell5.0スクリプトを作ってみました。
|
25
|
+
取得する要素、出力する要素、PowerShell5.0より前での動作確認などが未調整なので動作保証はしません。
|
26
|
+
vbs+WMIでも同じようなことはできそうですね。
|
27
|
+
|
28
|
+
|
29
|
+
```PowerShell 5.0
|
30
|
+
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
|
31
|
+
$parent = "HKLM:Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects"
|
32
|
+
$tokens = Get-Item -Path $parent
|
33
|
+
$clsids = $tokens.GetSubKeyNames()
|
34
|
+
foreach($clsid in $clsids)
|
35
|
+
{
|
36
|
+
$childPath = $parent + "\" + $clsid
|
37
|
+
$childPath
|
38
|
+
Get-Item -Path $childPath
|
39
|
+
$clsidPath = "HKCR:CLSID\" + $clsid;
|
40
|
+
Get-ChildItem -Path $clsidPath
|
41
|
+
}
|
42
|
+
|
43
|
+
$parent = "HKLM:Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects"
|
44
|
+
$tokens = Get-Item -Path $parent
|
45
|
+
$clsids = $tokens.GetSubKeyNames()
|
46
|
+
foreach($clsid in $clsids)
|
47
|
+
{
|
48
|
+
$childPath = $parent + "\" + $clsid
|
49
|
+
$childPath
|
50
|
+
Get-Item -Path $childPath
|
51
|
+
$clsidPath = "HKCR:CLSID\" + $clsid;
|
52
|
+
Get-ChildItem -Path $clsidPath
|
53
|
+
}
|
54
|
+
|
55
|
+
Get-ChildItem -Path "HKLM:Software\Microsoft\Internet Explorer\Extensions"
|
56
|
+
Get-ChildItem -Path "HKLM:Software\Wow6432Node\Microsoft\Internet Explorer\Extensions"
|
57
|
+
Get-ChildItem -Path "HKCU:Software\Microsoft\Internet Explorer\UrlSearchHooks"
|
58
|
+
```
|
59
|
+
|
60
|
+
参考資料
|
61
|
+
===
|
62
|
+
IEブラウザ拡張についての仕様。
|
63
|
+
[Browser Extensions](https://msdn.microsoft.com/ja-jp/library/aa753587(v=vs.85).aspx)
|
64
|
+
IEブラウザ拡張でのレジストリ情報
|
65
|
+
[Shortcut menu extensions](https://msdn.microsoft.com/ja-jp/library/aa753589(v=vs.85).aspx)
|
66
|
+
[Toolbars](https://msdn.microsoft.com/ja-jp/library/bb776819(v=vs.85).aspx)
|
67
|
+
[Explorer Bars](https://msdn.microsoft.com/ja-jp/library/bb776819(v=vs.85).aspx)
|
68
|
+
[Browser Helper Objects](https://msdn.microsoft.com/ja-jp/library/ms976373.aspx)
|
69
|
+
PowerShell上でレジストリへアクセスする方法。
|
70
|
+
[Working with Registry Keys](https://technet.microsoft.com/ja-jp/library/dd315270.aspx)
|
71
|
+
Get-Itemで取れるレジストリオブジェクトの仕様
|
72
|
+
[RegistryKey Class](https://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey(v=vs.110).aspx]
|