/build/static/layout/Breadcrumb_cap_w.png

How can I get Kace to input a 64bit registry Key?

Using k1000 v8
When I try to use the registry script builder, it inputs the key in:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\

I need it to go to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\

When I try and call it through a batch script, it does the same thing. When i run the reg file manually it goes in the right place. I am at a loss here.

Script:
@echo off  
"MS Reg Entry.reg"

Reg file:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat]
"cadca5fe-87d3-4b96-b7fb-a231484277cc"=dword:00000000

This is for the Spectre/Meltdown MS registry key entry. Any help would be great!

-Rob

0 Comments   [ + ] Show comments

Answers (2)

Posted by: chucksteel 6 years ago
Red Belt
1
You can use the reg.exe command and use the /reg:64 flag.

Comments:
  • When i run the script like this:
    @echo off
    reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat” /v cadca5fe-87d3-4b96-b7fb-a231484277cc /t REG_DWORD /d 0 /f /reg:64

    It hangs until i kill the process on the local box. It does the same thing when i run the command manually unless i have an elevated CMD window, - robhawker 6 years ago
    • How is your script configured? Is it an online shell script or something else? - chucksteel 6 years ago
      • Online Kscript - robhawker 6 years ago
      • Try using an online shell script. This is what my test script looks like:
        reg add "HKEY_LOCAL_MACHINE\Software" /v Test /t REG_SZ /d 32or64 /f /reg:64

        The script name is addreg.cmd. - chucksteel 6 years ago
    • You could also have the reg file as a dependency and do it with: reg import <name>.reg /reg:64. Having to use elevated command prompt, makes it sound like a UAC issue.

      http://www.itninja.com/question/how-can-i-elevate-a-command-prompt-to-run-a-batch-file-through-scripting - five. 6 years ago
Posted by: five. 6 years ago
Second Degree Green Belt
1
I've had good luck using this. The key is to use %windir%\sysnative

I believe something like this will work:


Comments:
  • this still redirects it to:
    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\QualityCompat - robhawker 6 years ago
    • Odd. It works great in my environment. The local users are not admins and I must run all scripts with local admin credentials. - five. 6 years ago
    • I know its kind of late, but hopefully can help others. The program name is not regedit.exe it was regedt.exe

      You can check it by launch cmd from %WINDIR%\SysWOW64\cmd.exe then cd into %WINDIR%\Sysnative

      Notes: Sysnative folder doesnt only available from 32bit process - hendra.tommy 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

View more:

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