Adding registry values for specific CPU manufacturers

HT 1 Reputation point
2022-05-10T13:27:39.927+00:00

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 for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 48,026 Reputation points
    2022-05-10T14:54:52.98+00:00

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

    $c=Get-CimInstance -ComputerName localhost -Class CIM_Processor
    $c.manufacturer
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.