/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Problems running script to create x64 system registry key

06/14/2012 9482 views

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.

Answer Summary:
In SCCM, instead of cscript.exe "yourscript.vbs" use %windir%\Sysnative\cscript.exe "yourscript.vbs"
0 Comments   [ + ] Show comments

Comments


All Answers

4

In SCCM, instead of:

cscript.exe "yourscript.vbs"

type:

%windir%\Sysnative\cscript.exe "yourscript.exe"

Answered 06/14/2012 by: asman
Purple Belt

  • Yes, this works!

    minor error though:

    %windir%\Sysnative\cscript.exe "yourscript.vbs"
  • ooh, sry i ment ".vbs" :)
 
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