Hope someone can help as I'm terrible as PowerShell scripts.
I'm looking to query Windows 10 devices using PS for the CPU manufacturers of "GenuineIntel" and "AuthenticAMD", and add a set of registry values based on which manufacturer it is.
Example:
1. Query for "GenuineIntel" and "AuthenticAMD"
2. If "GenuineIntel" then check if the following registry values are present on the device:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverrideMask: 0x00000003 (3)
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverride: 0x00002048 (8264)
3. If present, exit the script
4. If not present, add the reg values for Intel and exit the script
5. If "AuthenticAMD" then check if the following registry values are present:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverrideMask: 0x00000003 (3)
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\FeatureSettingsOverride: 0x00000048 (72)
6. If present, exit the script
7. If not present, add the reg values for AMD and exit the script