Registry via script not working
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f
unable to push theĀ entry highlighted in redĀ via KScript. I pushed these reg entries via Kscript to servers, first two entries applied successfully,but last one is not
added to registry
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
Badger
6 years ago
Posted by:
chucksteel
6 years ago
My first guess is that it is a 64bit issue. Since the KACE client runs in the 32bit context, accessing the 64bit areas of the registry requires an extra flag.
Comments:
-
could you help me with this ? need to push these to servers,
not able to push below reg entry
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f
able to push these reg entries
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f - rahimpal 6 years ago-
I just tested this, it all worked for me.
However the key you are having an issue with ended up in the 64 bit part of the registry.
Why are you saying 'its not working' are you looking for the value in the registry, or the effect of correctly adding these keys? - Badger 6 years ago