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 Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,452 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,671 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