/build/static/layout/Breadcrumb_cap_w.png

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)

Posted by: Badger 5 years ago
Red Belt
1

If you want to force the key into the 32 bit part of the registry, invoke the 32 bit reg.exe...


C:\Windows\SysWOW64\reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f

Posted by: chucksteel 5 years ago
Red Belt
0
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 5 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 5 years ago
      • I couldnt see the entry of this in registry .

        reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization" /v MinVmVersionForCpuBasedMitigations /t REG_SZ /d "1.0" /f - rahimpal 5 years ago
      • Well this works in my reg. How did you launch the registry? - Badger 5 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ