When running a VBScript in your system, the following error message may occur:
Error: ActiveX component can't create object: 'Wscript.Shell'
Source: Microsoft VBScript runtime error
This error occurs if the script is unable to initialize an ActiveX object (in this case the Wscript.Shell object) during runtime.
To resolve the problem, follow these steps:
Click Start, Run and type:
- regsvr32 wshom.ocx
- regsvr32 scrrun.dll
If the above does not help, or if you receive an error message when running the two commands above, then you may need to reinstall Windows Script 5.6 from Microsoft site. The download link is given below for Windows 2000 and XP systems.