Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 4.54 KB

GetCpuidImplementedPropertiesCmdlet.md

File metadata and controls

81 lines (60 loc) · 4.54 KB

GetCpuidImplementedPropertiesCmdlet class

Returns a collection of elements where each element represents an implemented property for given leaf, optionally you can specify the subleaf.

The elements are suitable to be used in the 'Get-CpuidProperty' operation as an input parameter of the '-Property' parameter.

public class GetCpuidImplementedPropertiesCmdlet : Cmdlet

Public Members

name description
GetCpuidImplementedPropertiesCmdlet() The default constructor.
Leaf { get; set; } Gets or sets a value that contains the name of the leaf.
SubLeaf { get; set; } Gets or sets a value that contains the name of the sub-leaf. This value is optional.

Protected Members

name description
override ProcessRecord() Process the command.

Examples

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-CpuidImplementedProperties -Leaf ProcessorInfoAndFeatures | CPUID-Implemented-Properties -Leaf ProcessorInfoAndFeatures
Get-CpuidImplementedProperties : Can not continue. CPUID instruction is not available in this system
...
...
...
The output may be different (depending on your system)!!!

The following example shows how to get the all implemented properties for the 'BasicInformation' CPUID leaf.
The search result returns a collection of objects with the property information.
The data type of the elements of the collection is suitable to be used as an input value in the '-Property' parameter
of the Get-CpuidProperty operation.

PS> Get-CpuidImplementedProperties -Leaf BasicInformation | CPUID-Implemented-Properties -Leaf BasicInformation

HexadecimalLeafId             Leaf SubLeaf PropertyKey
-----------------             ---- ------- -----------
00000000          BasicInformation Main Structure = BasicInformation, Property = HighestBasicFunction, Unit = None
00000000          BasicInformation Main Structure = BasicInformation, Property = Manufacturer, Unit = None
The output may be different (depending on your system)!!!

The following example shows how to get the all implemented properties for the 'DeterministicCacheParameters' CPUID leaf and 'One' sub-leaf.
The search result returns a collection of objects with the property information.
The data type of the elements of the collection is suitable to be used as an input value in the '-Property' parameter
of the Get-CpuidProperty operation.

PS> Get-CpuidImplementedProperties -Leaf DeterministicCacheParameters -SubLeaf One | CPUID-Implemented-Properties -Leaf DeterministicCacheParameters -SubLeaf One

HexadecimalLeafId                         Leaf SubLeaf PropertyKey
-----------------                         ---- ------- -----------
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = CacheSize, Unit = Bytes
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = CacheLevel, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = CacheType, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = WriteBack, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = UseDirectMappedCache, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = IsFullyAssociativeCache, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = IsCacheInclusiveOfLowerLevels, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = IsSelfInitializingCacheLevel, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = MaximumLogicalProcessorCores, Unit = None
00000004          DeterministicCacheParameters     One Structure = DeterministicCacheParameters, Property = MaximumPhysicalProcessorCores, Unit = None

See Also