It may run all the way back to PS1, but are the results provided by PS1 reliable? I think they may be as long as all of the functions used are valid back that far, but MS hasnāt provided a minimum PS version required for the results to be reliable and I have no way to be certain of this without investigating at least the functions used and if they have changed between PS versions in a fundamental way⦠which they likely havenāt.
Also, thanks a TON @mwolff for doing this testing!!! This is exactly what I hoped the community could provide.
the comments here: https://www.powershellgallery.com/packages/SpeculationControl/1.0.1
mention:
āIf multiple Win32_Processor instances are returned, this function crashes on older Powershell versions, as it canāt resolve the manufacturer.ā
which matches:
which seems to be a flaw in the powershell code itself due to this mention of a workaround:
I use a Workaround in the SpeculationControl.psm1:
$cpu = Get-WmiObject Win32_Processor
if ($cpu.count){$cpu = $cpu[0]}
Which tells me this is most likely an issue whenever there are multiple physical CPUs based upon: