windows:powershell:commands:get-item_property_value

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
windows:powershell:commands:get-item_property_value [2020/03/25 05:46] ともやんwindows:powershell:commands:get-item_property_value [2020/09/11 19:19] (現在) ともやん
行 1: 行 1:
-====== Get-Item/Get-ItemProperty/Get-ItemPropertyValue ======+====== Get-Item / Get-ItemProperty / Get-ItemPropertyValue (alias: gi / gp / gpv) ====== 
 + 
 +===== レジストリ エントリの表示 ===== 
 +<WRAP prewrap 100%> 
 +<code powershell> 
 +PS > Get-Item -Path 'HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses' 
 +</code> 
 +</WRAP> 
 +※レジストリは **-Path HKLM:\SOFTWARE...** または、**-Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE...** のように指定できる。\\ 
 + 
 +<WRAP prewrap 100% #result> 
 +<code powershell> 
 + 
 +    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SecurityManager 
 + 
 +Name                           Property 
 +----                           -------- 
 +CapabilityClasses              AllCachedCapabilities : {S-1-15-3-1024-955681297-3470559067 
 +                               -873149510-312866181-505149074-2965990245-3641224364-480676 
 +                               545, S-1-15-3-1024-3167453650-624722384-889205278-321484983 
 +                               -714554697-3592933102-807660695-1632717421, S-1-15-3-210544 
 +                               3330-1210154068-4021178019-2481794518, S-1-15-3-1024-327591 
 +                               5203-3073501320-309536135-1674744297-1740689076-4251230105- 
 +                               810187298-4091229748…} 
 +</code> 
 +</WRAP> 
 + 
 +<WRAP prewrap 100%> 
 +<code powershell> 
 +PS > Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap 100% #result> 
 +<code powershell> 
 + 
 +AllCachedCapabilities : {S-1-15-3-1024-955681297-3470559067-873149510-312866181-505149074- 
 +                        2965990245-3641224364-480676545, S-1-15-3-1024-3167453650-62472238 
 +                        4-889205278-321484983-714554697-3592933102-807660695-1632717421,
 +                        -1-15-3-2105443330-1210154068-4021178019-2481794518, S-1-15-3-1024 
 +                        -3275915203-3073501320-309536135-1674744297-1740689076-4251230105- 
 +                        810187298-4091229748…} 
 +PSPath                : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Mi 
 +                        crosoft\SecurityManager\CapabilityClasses 
 +PSParentPath          : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Mi 
 +                        crosoft\SecurityManager 
 +PSChildName           : CapabilityClasses 
 +PSDrive               : HKLM 
 +PSProvider            : Microsoft.PowerShell.Core\Registry 
 +</code> 
 +</WRAP> 
 +※**PSPath** など **PS** 始まりの項目は PowerShell 関連のプロパティ。\\ 
 + 
 +==== プロパティ値の取得 ==== 
 +<WRAP prewrap 100%> 
 +<code powershell> 
 +PS > Get-ItemPropertyValue -Path HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses -Name AllCachedCapabilities 
 +</code> 
 +</WRAP> 
 +<WRAP prewrap 100% #result> 
 +<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 
 +... 
 +</code> 
 +</WRAP>
  
 ===== 参考文献 ===== ===== 参考文献 =====
  • windows/powershell/commands/get-item_property_value.1585082772.txt.gz
  • 最終更新: 2020/03/25 05:46
  • by ともやん