question

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

Powershell script that adds registry values based on device's CPU manufacturer

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

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
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.