Open a command prompt and type (make sure you have admin privileges in the console):

regsvr32 %systemroot%\system32\vbscript.dll
cscript.exe //H:WScript
  1. Locate the file %windir%\inf\wsh.inf (inf is a hidden folder)
  2. right click and select “Install”.