====== Get-Item / Get-ItemProperty / Get-ItemPropertyValue (alias: gi / gp / gpv) ====== ===== レジストリ エントリの表示 ===== PS > Get-Item -Path 'HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses' ※レジストリは **-Path HKLM:\SOFTWARE...** または、**-Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE...** のように指定できる。\\ 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…} PS > Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses 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, S -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 ※**PSPath** など **PS** 始まりの項目は PowerShell 関連のプロパティ。\\ ==== プロパティ値の取得 ==== PS > Get-ItemPropertyValue -Path HKLM:\SOFTWARE\Microsoft\SecurityManager\CapabilityClasses -Name AllCachedCapabilities 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://tooljp.com/|FAQ Center | Windows 疑問・トラブル即解決]]\\ [[https://docs.microsoft.com/ja-jp/powershell/scripting/samples/working-with-registry-entries?view=powershell-7|レジストリ エントリの操作 - PowerShell | Microsoft Docs]]\\ [[https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.management/get-item?view=powershell-7|Get-Item]]\\ [[https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7|Get-ItemProperty]]\\ [[https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.management/get-itempropertyvalue?view=powershell-7|Get-ItemPropertyValue]]\\