/build/static/layout/Breadcrumb_cap_w.png

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"
Posted by: asman 12 years ago
Purple Belt
4

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
 
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