差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
windows:powershell:commands:get-item_property_value [2020/03/25 03:45] – 作成 ともやん | windows:powershell:commands:get-item_property_value [2020/05/29 14:42] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Get-Item/ | + | < |
+ | < | ||
+ | #result pre, #mincode pre { | ||
+ | overflow: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | # | ||
+ | height: 250px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | #mintbl table { | ||
+ | font-size: 12px; | ||
+ | } | ||
+ | #mintbl td pre { | ||
+ | margin: 0; | ||
+ | } | ||
+ | #img_long { | ||
+ | height: 400px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | } | ||
+ | .dokuwiki .plugin_wrap table { | ||
+ | width: auto; | ||
+ | } | ||
+ | #logo { | ||
+ | background-color: | ||
+ | padding: 10px; | ||
+ | width: fit-content; | ||
+ | } | ||
+ | #logo p { | ||
+ | margin: 0; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | ====== Get-Item / Get-ItemProperty / Get-ItemPropertyValue | ||
+ | |||
+ | ===== レジストリ エントリの表示 ===== | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > Get-Item -Path HKLM: | ||
+ | </ | ||
+ | </ | ||
+ | ※レジストリは **-Path HKLM: | ||
+ | |||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | |||
+ | Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SecurityManager | ||
+ | |||
+ | Name | ||
+ | ---- | ||
+ | CapabilityClasses | ||
+ | | ||
+ | 545, S-1-15-3-1024-3167453650-624722384-889205278-321484983 | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > Get-ItemProperty -Path HKLM: | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | |||
+ | AllCachedCapabilities : {S-1-15-3-1024-955681297-3470559067-873149510-312866181-505149074- | ||
+ | 2965990245-3641224364-480676545, | ||
+ | 4-889205278-321484983-714554697-3592933102-807660695-1632717421, | ||
+ | -1-15-3-2105443330-1210154068-4021178019-2481794518, | ||
+ | -3275915203-3073501320-309536135-1674744297-1740689076-4251230105- | ||
+ | 810187298-4091229748…} | ||
+ | PSPath | ||
+ | crosoft\SecurityManager\CapabilityClasses | ||
+ | PSParentPath | ||
+ | crosoft\SecurityManager | ||
+ | PSChildName | ||
+ | PSDrive | ||
+ | PSProvider | ||
+ | </ | ||
+ | </ | ||
+ | ※**PSPath** など **PS** 始まりの項目は PowerShell 関連のプロパティ。\\ | ||
+ | |||
+ | ==== プロパティ値の取得 ==== | ||
+ | <WRAP prewrap 100%> | ||
+ | <code powershell> | ||
+ | PS > Get-ItemPropertyValue -Path HKLM: | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | <code powershell> | ||
+ | S-1-15-3-1024-955681297-3470559067-873149510-312866181-505149074-2965990245-3641224364-480676545 | ||
+ | S-1-15-3-1024-3167453650-624722384-889205278-321484983-714554697-3592933102-807660695-1632717421 | ||
+ | S-1-15-3-2105443330-1210154068-4021178019-2481794518 | ||
+ | S-1-15-3-1024-3275915203-3073501320-309536135-1674744297-1740689076-4251230105-810187298-4091229748 | ||
+ | S-1-15-3-1 | ||
+ | S-1-15-3-1024-3996699186-3595629362-3480063212-3905085333-2276303035-3068169911-3004821721-4252886170 | ||
+ | S-1-15-3-12 | ||
+ | S-1-15-3-1024-3299255270-1847605585-2201808924-710406709-3613095291-873286183-3101090833-2655911836 | ||
+ | S-1-15-3-1024-1913821931-1108981997-895954514-4209058812-2801866697-2689726501-1421786583-1766464325 | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 参考文献 ===== | ||
+ | [[http:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||