Problems running script to create x64 system registry key
Hi All, I am in need of creating a registry in HKLM\Software\ directly in a x64 bit computer using VB script. The VB script writes the registry to HKLM\Sotware\ when executed manually. But when deployed from SCCM, the registry is written in HKLM\Software\Wow6432Node. Please help!!
Tried using Runonce and ActiceSetip but the results are same.
0 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
In SCCM, instead of cscript.exe "yourscript.vbs" use %windir%\Sysnative\cscript.exe "yourscript.vbs"
In SCCM, instead of cscript.exe "yourscript.vbs" use %windir%\Sysnative\cscript.exe "yourscript.vbs"
Please log in to answer
Posted by:
asman
12 years ago
In SCCM, instead of:
cscript.exe "yourscript.vbs"
type:
%windir%\Sysnative\cscript.exe "yourscript.exe"
Comments:
-
Yes, this works!
minor error though:
%windir%\Sysnative\cscript.exe "yourscript.vbs" - adilrathore 12 years ago -
ooh, sry i ment ".vbs" :) - asman 12 years ago