tags:

views:

37

answers:

1

Hi all,

I get the following error message when I run the vbscript named 'GetDiskSize.vbs' in Windows 2008 Server.

Can't find script engine "VBScript" for script 'GetDiskSize.vbs'

The vbscript has been registreed as regsrv32 VBScript.dll but still not work. Please help.

Regards, Wilson

A: 

The usual fix would be to reregister the dll:

regsvr32 %systemroot%\system32\vbscript.dll

But you mention you've tried that.

Some Antivirus products insert themselves in the registry so that they get called as the scripting engine before passing on to the vbscript/jscript engine. It could be that this has caused problems. Try uninstalling your antivirus to test if this is the case.

See useful post here: http://blogs.technet.com/b/instan/archive/2010/07/20/can-t-find-script-engine-quot-vbscript-quot-for-script-after-installing-ms10-020.aspx

If all else fails, and you're on Windows XP you could try reinstalling WSH 5.6:

Download from: http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en

hjd