/build/static/layout/Breadcrumb_cap_w.png

Systems Management Question


Registry via script not working

04/18/2018 1021 views

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

Comments



Community Chosen Answer

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

Answered 04/25/2018 by: Badger
Red Belt

All Answers

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.

Answered 04/18/2018 by: chucksteel
Red Belt

  • 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
    • 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?
      • 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
      • Well this works in my reg. How did you launch the registry?
 
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