I am using K1000 6.4. I am trying to push a *.reg file.
I am using the scripting from K1000. Here is what I am doing.
Remediation
Directory: C:\Windows\SysWOW64
File: reg.exe
Paramerers: add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit=dword 00000000
I found this from http://www.itninja.com/question/edit-registry-key-on-windows-8-with-reg-command-via-script
It is not working. I need someone to let me know what I am doing wrong.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
you are using the 32bit reg.exe by choosing that one use the one in c:\windows\system32 and change the parameters to be correct usage
add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f
if that does not work use this on x64 machines
add "HKLM64\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f
add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f
if that does not work use this on x64 machines
add "HKLM64\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f
Posted by:
SMal.tmcc
8 years ago
I have been trying to debug a CIR problem and discovered that I had to use the sysnative call to get reg.exe to work correctly.
Directory: C:\windows\sysnative
File: Reg.exe
Parameters: add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f
ShellCommandTextReturn(c:\windows\sysnative\reg.exe query hklm\software\microsoft\windows\currentversion\run & c:\windows\sysnative\reg.exe query hklm\software\WOW6432Node\microsoft\windows\currentversion\run)for your situation you may need to do the same thing
Directory: C:\windows\sysnative
File: Reg.exe
Parameters: add "HKLM\SYSTEM\CurrentControlSet\services\Dnscache\Parameters" /v ServerPriorityTimeLimit /t REG_DWORD /d 0 /f