none
Windows Script Host 32-bit on Windows 7 64-bit - Automation server can't create object RRS feed

  • Question

  • I get an error "Automation server can't create object" on this statement "var oWSS = new ActiveXObject("WScript.Shell");", but only in 32-bit mode.

    I have posted the details here: http://stackoverflow.com/questions/43400913/windows-script-host-32-bit-on-windows-7-64-bit

    How can I solve the problem?


    Frank

    • Moved by Bill_Stewart Saturday, June 24, 2017 6:37 PM This is not "break/fix OS components" forum
    Thursday, April 27, 2017 1:32 PM

All replies

  • This is not a scripting issue. It is a break/fix issue and must be resolved through system troubleshooting.

    If you cannot  register the components then you have other issues like damaged files or issues with malware.


    \_(ツ)_/

    Thursday, April 27, 2017 2:04 PM
  • Note also that you should register the objects from a 32 bit prompt.  Open PowerSHell x86 and just run the following:

    regsvr32 jscript.dll
    regsvr32 dispex.dll
    regsvr32 scrobj.dll
    regsvr32 scrrun.dll
    regsvr32 shell32.dll

    This will reregister the modules for WSH and Jscript.  You do not need to specify a directory as the system knows how to find the correct DLLs.


    \_(ツ)_/



    • Edited by jrv Thursday, April 27, 2017 2:42 PM
    Thursday, April 27, 2017 2:34 PM
  • I added shell32.dll which is required for WScript.Shell object.


    \_(ツ)_/

    Thursday, April 27, 2017 2:43 PM