Need help with a VBScript to create a Runonce key on 64bit Windows
Hi All, I need to create a Runonce key on a 64 bit computer using Vb Script. On installing the vbs file manually, the registry is getting created under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce. But when i deploy the same vbs thorugh SCCM the Runonce key is created under W
SetRegKey "HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "RealVNC", "C:\Program Files (x86)\VNC\Install.vbs", "RegSZ"
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
Use CScript.exe under the sysnative folder
Use CScript.exe under the sysnative folder
Please log in to answer
Posted by:
GAKIS
12 years ago
What do you mean created under W?..
Comments:
-
Under water.....
or perhaps Wow6432Node? I like to think (s)he meant under water though. - etipton 12 years ago
Posted by:
adilrathore
12 years ago