To fix the Windows Script Host error 0x80020102, first, ensure that your Windows Script Host is enabled. You can do this by checking the Windows Registry: open the Registry Editor and navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings
. Ensure that the "Enabled" entry is set to 1. If it is not present, create a new DWORD value named "Enabled" and set it to 1. Additionally, ensure your system is free from malware and run a system file check using the command sfc /scannow
in an elevated Command Prompt to repair any corrupted files.
Assuming the message states,"Windows Script Host cannot find the script file C:\Documents and Settings\<Username>\boot.vbs", where <Username> is your user account name. Sounds like a crippled virus or worm. The computer thinks it is supposted to start the script upon Windows startup, but the file is missing. There is no such file included with Windows by default.
Most scripts written inside of Windows are written using Visual Basic, or a Visual Basic derivative, like Windows Script Host (created for things like logon scripts on networks.)
windows scripting host
Windows Scripting Host (WSH)
Windows Scripting Host (WSH)
WSH or Windows Scripting Host also known as Visual Basic Script also known as "VerBoSe" (I made that one up cause the language imo is verbose)
A JavaScript may be written with malicious intent. Script malware makes use of Microsoft's Windows Scripting Host (WSH). WSH is a Windows administration tool that makes objects and services available for various scripts and provides a set of guidelines within which the script is executed. It allows remote malicious users to run scripts from the Windows desktop, Windows Explorer, and Windows command prompt. WSH cannot distinguish between malicious and non-malicious script. Double-clicking on a script malware file will cause the malware to run its main action and payload, thus infecting the system.
Dino has written: 'Majestic Peace' 'Windows Script Host programmer's reference' -- subject(s): Computer software, Development, Microsoft Windows (Computer file) 'Somewhere in Time' 'Thirty Seven Thirty Seven' 'Dino - Collection'
Cops
C:\WINDOWS\system32\drivers\etc
The Windows Scripting Host is a tool that will allow you to run Visual Basic Scripting Edition and JScript within the base Operating System, either on Windows 95 or Windows NT 4.0. Using the scripting languages you already know you can now write script to automate common tasks, and to create powerful macros and logon scripts. On the Desktop, or in Windows Explorer, right-click on 'My Computer'. Select 'Open' from the menu. In the My Computer window, open the Tools menu and select 'Folder Options'. Open the File Types tabbed page. Look for 'VBScript Script File' in the list of file types Click on the Delete button. click 'Yes'. Rename or delete the WSH executable : wscript.exe Its normally found in the system32 folder. Block WSH from executing .vbs files by removing the file association
There are six steps on how to find the Windows host. Some of the step-by-step instructions are pick a host name, enter the computer's physical address, and then open the command prompt.