4

I keep getting it in command prompt, any idea why and how I may resolve the issue?

Windows 7 Ultimate 32-Bit

quack quixote
  • 42,186
  • 14
  • 105
  • 129
Chris0089
  • 633
  • 5
  • 16
  • 23

3 Answers3

3

Let's try this first.

Open an elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. Type the following command in the Command Prompt window, and press ENTER.

regsvr32 %systemroot%\system32\vbscript.dll

You should see the following message:

DllRegisterServer in vbscript.dll succeeded.

Now see if the problem persists.

Wasif
  • 7,984
  • 2
  • 19
  • 32
Brian Drab
  • 31
  • 1
0

Have you checked the file associations?

http://www.nilpo.com/2009/07/windows-xp/restoring-vbs-vbscript-script-file-file-associations/

user47560
  • 111
  • 2
  • File associations is a good guess. In my case it was that Notepad++ was trying to handle .js files. – ojchase Jul 29 '21 at 04:14
0

Check to see if Windows remote management is installed, and reinstall the WSH configuration settings:

  1. Find the Windows/inf directory.
    • Enter %windir%\inf into the run, command-line, or Explorer address field and press Enter (this directory is commonly located at C:\WINDOWS\inf)
  2. This directory is hidden; unhide as follows:
    • Tools → Folder Options → View → Advanced Settings
    • Uncheck "Hide protected operating system files"
  3. Within the inf directory, find the "wsh.inf" file.
  4. Right-click on the file and select Install.
  5. Retest the scripting engine.
  6. This will restore these files:
    • .js
    • .jse
    • .wsh
    • .vbs
    • .vbe
    • .wsc
    • .wsf
Indrek
  • 24,204
  • 14
  • 90
  • 93