Input Error: There is no script engine for file extension ".vbs"

3

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

Windows 7 Ultimate 32-Bit

Chris0089

Posted 2010-06-23T21:22:37.723

Reputation: 623

this is a similar question to http://superuser.com/questions/223728/windows-script-host-error-dialog-popups-in-the-morning There are other answers in that thread that are not mentioned here.

– Brtrnd – 2013-09-17T08:18:58.723

Operating System? – Hello71 – 2010-06-23T21:37:55.823

try running it this way cscript sript.vbs if there is a different error please post that one too. – KutscheraIT – 2010-12-21T00:03:16.783

Did this start after you installed some software? If so, try reinstalling it. – goblinbox – 2011-08-24T02:36:38.250

Answers

2

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.

Brian Drab

Posted 2010-06-23T21:22:37.723

Reputation: 21

0

user47560

Posted 2010-06-23T21:22:37.723

Reputation: 111

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

Mark Abraham

Posted 2010-06-23T21:22:37.723

Reputation: 1

Hi, I don't see any wsh.inf file. What could I do in this scenario? – Bat_Programmer – 2016-08-15T00:45:59.820