-Problem-
I recently recieved the following error while trying to execute a vbs file.

E:\VBScript>cscript.exe LastLogon.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

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

-Fix-
To fix this error do the following:
Locate the file %windir%\inf\wsh.inf (inf is a hiddenfolder), right click, select "Install".
Now your vbs scripts will execute properly.