question

HT-7368 avatar image
0 Votes"
HT-7368 asked RichMatheisen-8856 answered

Adding registry values for specific CPU manufacturers

Hope someone can help.

I'm trying to query two specific CPU manufacturers "GenuineIntel" and "AuthenticAMD" on Windows 10 devices and apply add different sets of registry values when there's a positive match.

Example:

  1. Query for "GenuineIntel" or "AuthenticAMD"

  2. If "GenuineIntel" then check whether both registry values exist:
    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverrideMask: 0x00000003 (3)
    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverride: 0x00002048 (8264)

  3. If no, add them.

  4. If yes, exit the script

  5. If "AuthenticAMD" then check whether both registry values exist:
    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverrideMask: 0x00000003 (3)
    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverride: 0x00000048 (72)

  6. If no, add them

  7. If yes, exit the script

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

It's be easier to use CIM to get that information.

 $c=Get-CimInstance -ComputerName localhost -Class CIM_Processor
 $c.manufacturer
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.