search
top

Can’t find script engine “VBScript” for script error on Windows 7 and Windows 2008

We had recently received an error when upgrading a product and the script used for the upgrades was VBScript. When running the script there was a few systems that displayed the following error. “Can’t find script engine “VBScript” for script “<path to script>” Upon doing a bit of digging I found that most times this error is resolved by re-registering the vbscript.dll. We ran the following commands.... read more

Perform In-Place file edit with VBScript

Recently had the need to search and replace a configuration file on a system. This was part of an installation of an older program that required a variable to be replace with the computername. Being that the systems were Windows of several different releases (2000, 2003 and 2008) I could not use Powershell to complete the task and went with vbscript as the tool of choice. Here is what the script looks... read more

Disable NetBIOS over TCPIP with vbscript

Part of building new servers I have been creating a script to configure add and remove features added to the Windows 2008 R2 servers. The process is being handled by powershell, command scripts and vbscripts. Ran into a step to disable the WINS setting for  Disable NetBIOS over TCP/IP.  As with any step in the build process automation is the key to consistent builds and reduce human error. For this part I... read more

Search and Delete Files less than 1 hour old with vbscript

Ran into a situation where temporary created files were filling the drives of a Windows 2003 server. So I turned to vbscript and creating a scheduled task to keep the space issue at bay. Here is the script. ‘ VBscript to delete files older than 1 hour ‘ directory to delete ‘ cleanoldfiles.vbs ‘ change dir variable to directory to target files sdir=”d:\my dir” dim dt,... read more

There is no script engine for file extension “.vbs” error

Being the typical geek I installed software and started seeing There is no script engine for file extension “.vbs” errors. The program installed was NotePad++ on my Windows XP workstation and is an awesome tool for programming and editing in general and not to mention it is free. Anyway, when the program was installed it took the .vbs extension and vbscripts stopped working and started throwing the error.... read more

top