Returns a reference that contains the information associated with the given property such as the key that identifies the property and its value.
The value of the property Property must be obtained by calling the Get-CpuidLocateProperty, for more information see the help for the Get-CpuidLocateProperty and the sample examples below.
public class GetCpuidPropertyCmdlet : Cmdlet
name | description |
---|---|
GetCpuidPropertyCmdlet() | The default constructor. |
Property { get; set; } | Gets or sets a value that contains the location property data. |
name | description |
---|---|
override ProcessRecord() | Process the command. |
If the CPUID instruction is not available, it always returns the message 'Can not continue. CPUID instruction is not available in this system'.
PS> Get-CpuidProperty -Property (Get-CpuidLocateProperty -Name Manufacturer) | CPUID-Property -Property (CPUID-Locate-Property -Name Manufacturer)
Get-CpuidProperty : Can not continue. CPUID instruction is not available in this system
...
...
...
The output may be different (depending on your system)!!!
To do this, first by calling 'Get-CpuidLocateProperty', we search among all the available properties of our system for those that call 'Manufacturer'
and then with the result obtained, the 'Get-CpuidProperty' call tries to obtain the property information, remember that a property it is made up of your key and its value.
PS> Get-CpuidProperty -Property (Get-CpuidLocateProperty -Name Manufacturer) | CPUID-Property -Property (CPUID-Locate-Property -Name Manufacturer)
Key Value
--- -----
Structure = BasicInformation, Property = Manufacturer, Unit = None GenuineIntel
The output may be different (depending on your system)!!!
To do this, first by calling 'Get-CpuidLocateProperty', we search among all the available properties of our system for those that call 'CacheSize' and belong to sub-leaf 'Two'.
After the 'Get-CpuidProperty' call tries to obtain the property information with the result obtained, remember that a property consists of its key and its value.
PS> Get-CpuidProperty -Property (Get-CpuidLocateProperty -Name CacheSize -SubLeaf Two) | CPUID-Property -Property (CPUID-Locate-Property -Name CacheSize -SubLeaf Two)
Key Value
--- -----
Structure = DeterministicCacheParameters, Property = CacheSize, Unit = Bytes 262144
- namespace PowerShellCpuid.CmdLets