Script Host Error Windows 10

Microsoft Script Host is the technology used for creating automation capabilities within the Windows operating systems. If your script host becomes damaged, it is probably because certain scripts are missing from the host and will result in performance malfunctions. Jan 09, 2014  If you receive this Windows Script Host access is disabled on this machine, Contact your administrator for details message box, on your Windows 10/8/7. Oct 31, 2018  Fix Windows Script Host Errors on Startup Windows 10. It’s recommended to create a restore point just in case something goes wrong. Method 1: Run System File Checker (SFC) and CheckDisk (CHKDK) 1.Press Windows Key + X then click on Command Prompt(Admin).

Summary :

Windows Script Host is an administration tool built in every Windows operating system. Its main function is the scripting abilities like batch files. The Windows Script Host error may appear on your Windows 10/8/7 computer due to virus invasion, registry errors, or VBS script file.

This article mainly discusses how to fix Windows Script Host on Windows 10.

Quick Navigation :

What does Windows Script Host do?

Windows Script Host, short for WSH, is actually a Microsoft technology; it is designed for computer administrators to automate and manage some tasks for the client computers (or servers). The scripting abilities which can be comparable to batch files are included in Windows Script Host. One of the most obvious characteristics is: it’s language-independent. That means the host is able to work with different Active Scripting language engines.

All in all, the Windows Script Host provides an environment for the Windows users to execute scripts in different languages which will perform tasks via different object models.

Windows Script Host Error Windows 10

According to users’ feedback, the Windows Script Host error comes up all the time. The people get bothered by this error seriously have written down the actual situation on the internet; they hope to get help from experienced users, and even professionals. For instance:

Hello, I am going to tell you a funny experience so I left 4 months for work and I left my laptop home (g9 593 Win 10 Pro) 2 days ago I came back, when I left my laptop was well taken care of , no viruses no problems, when I come back I found weird icons on desktop, that was blocking my desktop and sending me to some web site, so it took me a while to delete them, then after a lot of updating and fixing I successfully fixed a big part of the problem like updates, virus checking, registry cleaning (CCleaner), hardware parts checking with Acer center, and so on , but I am left with an error from Windows Script Host: Cannot find script file -something with starting with- Hxxxx.vbs. Now I tried to disable WSH but I couldn't cause in Regedit I don’t have enabled line so I can't set it to 0 as disabled, the thing is that I've read that WSH can be used by hackers or whatever viruses so I want it down. Is there any way or any software to disable it without Regedit where I miss the enabled line?- asked SurFac3 in Tom’s Hardware Forums

Definitely, the Windows Script Host tool in the user’s computer has been damaged somehow. As he said, virus invasion is of the common reasons for Windows Script Host error. Before telling him how to disable Windows Script Host, I’d like to share the popular causes and situations of Windows Script Host issue.

What Causes Windows Script Host Errors

3 types of reasons are found to be responsible for Windows Script Host error in Windows 7, Windows 8, and Windows 10.

  • Virus or the Malware: Windows Script Host virus or malware is proved to be the major cause of this error. The virus/malware may attack your system and infect the crucial system files with a malicious code. In this case, you must remove/eliminate the virus completely in time; otherwise, it may delete your valuable files/partitions, and even ruin your system.
  • VBS script file damage: the VBS script refers to the file that contains VBScript or Visual Basic Scripting codes. If the file goes wrong, the Windows Script Host error vbs will appear on your computer at any time.
  • Registry errors: this type of errors usually shows up when you install new programs over the old programs directly. This will result in a slow speed in opening the programs and even a sudden crash in the system. To avoid this, you should uninstall the old ones completely before starting the install of the new program.

FYI: tips on how to recover from the virus:

Windows Script Host: Error Messages

The execution of the Windows Script Host failed sometimes and you may find yourself be stuck in the following situations.

Situation 1: Windows Script Host access is disabled on this machine, Contact your administrator for details.

Obviously, the error appears because you lose access to Windows Script Host on your current machine.

  • If you are using other people’s computer, you should ask the administrator for help, as suggested.
  • Yet, if you are running your own computer, you may try the methods that will be introduced in the next part to gain access again.

Situation 2:Can not find script file “C:UsersPublicLibrariesChecks.vbs” (the file location is not fixed).

This type of error happens when the certain script file needed by the system currently has been damaged or lost. In theory, you could recover/repair the needed script file so as to fix the Windows Script Host cannot find script file issue.

Additionally, you may also receive the Can’t find script engine'VBScript' for script error message sometimes.

Situation 3: The system cannot find the file specified.

Similarly, this error occurs when the system fails to find the certain script file (*.vbs).

In addition to access is denied, Can not find script file, and the system cannot find the file specified mentioned above, there are also other possible error messages indicating the Windows Script Host error:

  • Not enough storage
  • Not enough memory
  • Blocked by group policy
  • The parameter is incorrect
  • Etc.

How to Fix Windows Script Host on Windows 10

Windows

When a problem occurs, the first thing you want to do is try every possible means to solve it, right? But when you really encounter the Windows Script Host error, I advise you to take good care of your data first.

You should adopt MiniTool ShadowMaker to backup all important drives and files; besides, use the MiniTool Power Data Recovery to recover all lost data you need.

Recover Data with MiniTool Power Data Recovery

Please don’t waste any time! Just restore your files quickly by following the below-listed steps.

Step one: get MiniTool Power Data Recovery from a reliable link. (Please click on the button below to get the setup program and save it to the drive which doesn't contain any lost files.)

Step two: initialize the setup program to finish the installation process of MiniTool Power Data Recovery. Then, run this data recovery software to see the following window.

In general, the disk information loading process will last for only a few seconds (usually 2~3 seconds). Then, you’ll see the main interface of the software.

Step three: select a proper option from the left-hand pane of the software main interface.

  • This PC
  • Removable Disk Drive
  • Hard Disk Drive
  • CD/DVD Drive

In the case where Windows Script Host goes wrong, you should:

  • Select This PC to recover files from a certain drive.
  • Select Hard Disk Drive to recover files from a missing drive (you should also select this when you don’t which drive the files are included in).

Step four: double click on the target partition or the disk to perform a full scan on it. Then, wait for the scan.

Step five:

  1. Look through the files found by MiniTool Power Data Recovery and check the ones you really need (if you can’t decide which files are useful and which are not, please check them all).
  2. Then, click on the Save button to choose another drive/disk to store the recovered files (please make sure the drive you’ve chosen has enough free space).
  3. Click on the OK button to confirm your choice.
  4. Wait until all the needed files have been recovered to the drive you specified.

Now, you can open the drive to check whether it contains all the lost data you need from the scanned drive. If yes, please close MiniTool Power Data Recovery software and end the data recovery task; if no, please choose more files from the search result to recover or finish another round of scan to have a try.

Should you have any questions, please let us know by leaving a message at the end of this article.

Useful Ways to Fix Windows Script Host Error in Windows 10

When you can confirm you have got all the data you need, the next step is to fix the error. There are some methods which are used frequently and have helped many people get out of the trouble; please take a look at them carefully.

Fix 1: run the Microsoft Safety Scanner.

The Microsoft Safety Scanner tool can be used to scan for viruses in a Windows PC.

  1. Download the Microsoft Safety Scanner if you don’t have.
  2. Install it properly on your PC.
  3. Disable all the antivirus software and security essentials.
  4. Run the Microsoft Safety Scanner to check your PC for virus.
  5. Wait for the scan and do what it suggests you do.

Fix 2: run System File Checker (SFC).

  1. Click on Cortana search box on the taskbar and input cmd.
  2. Right click on Command Prompt under Best match.
  3. Choose Run as administrator from the context menu.
  4. Choose Yes in the User Account Control pane.
  5. Type sfc /scannow and press Enter.
  6. Wait for the command to finish.
  7. Restart your computer.

Fix 3: turn to clean boot.

  1. Click on Cortana search box on the taskbar and input run.
  2. Select the Run app from the search result or just press Enter.
  3. Type msconfig into the textbox; then, press Enter or click on the OK button in the Run dialog box.
  4. The General tab will be checked by default in the System Configuration window.
  5. Choose Selective startup in the General tab.
  6. Make sure Load system services option is checked and the Load startup items option is unchecked.
  7. Shift to the Services tab.
  8. Check Hide all Microsoft services at the bottom.
  9. Click on the Disable all button to disable the remaining services.
  10. Click on the OK button.
  11. Restart the PC to see whether the Windows Script Host error messages will appear again.

Please be advised that you should undo the above steps after you found the error has been solved in order to start your PC normally.

Fix 4: change the value of the .vbs key.

  1. Repeat step 1 and step 2 in the above fix 3.
  2. Type regedit and click on the OK button.
  3. Choose Yes in the User Account Control pane.
  4. Expand the HKEY_CLASSES_ROOT folder under Computer in the left navigation pane.
  5. Select .vbs folder in the left pane.
  6. Right click on the (Default) key in the right pane.
  7. Choose Modify… from the context menu.
  8. Make sure the Value data is VBSFile.
  9. Click on the OK button to confirm.
  10. Close Registry Editor and reboot your PC to let changes take effect.

Fix 5: delete entries after Userinit.exe (this method is useful when encountering Windows Script Host error on startup).

  1. Repeat step 1 to step 3 in fix 4 to open Registry Editor.
  2. Expand HKEY_LOCAL_MACHINE, SOFTWARE, Microsoft, and Windows NT.
  3. Select CurrentVersion.
  4. Delete all the entries you can find after userinit.exe in the right pane (they are often VMApplet and WinStationsDisabled).
  5. Double click on Userinit.
  6. Remove C:windowssystem32servieca.vbs or C:WINDOWSrun.vbs.
  7. Make sure the default value is C:Windowssystem32userinit.exe.
  8. Press OK.
  9. Close Registry Editor and reboot your PC to let changes take effect.

Please note that you can also try to delete the *.vbs entry when seeing Windows Script Host error message on startup.

If you have deleted important files by mistake, please recover them immediately:

Learn the steps to recover permanently deleted files in Windows 10/8/7/XP/Vista after 'shift-delete' or 'empty recycle bin'.

Fix 6: rely on Repair Install.

This method should be your last resort; it will surely fix the Windows Script Host error and repair the corrupt system files.

How to Disable Windows Script Host in Win10

According to the report, some HTML malware will use WSH objects. Therefore, Windows users who don’t need this feature prefer to disable it.

How do I get rid of Windows Script Host pop up:

  1. Open the run dialog box the way you like.
  2. Type regedit and click on the OK button.
  3. Choose Yes in the User Account Control pane to open Registry Editor.
  4. Find the Enabled value under HKEY_CURRENT_USERSoftwareMicrosoftWindows Script HostSettings. (When you find Windows Script Host enable missing, please create one yourself.)
  5. Double click on Enabled from the right-hand pane.
  6. Set the Value data to be 0.
  7. Click on the OK button to confirm.
  8. Exit the Registry Editor.
Tip: If you fail to find the entry on your computer, you should create it in Registry Editor. Then, set the Value data to be 1 and save changes.

Please be advised that you won’t be able to run any scripts using WSH after disabling it (VBScript and JScript scripts are included).

How to enable the Windows Script Host again? Definitely, you should delete the Enabled key in Registry Editor.

Conclusion

Clearly, the Windows Script Host is an application built in Windows to run VBScript programs. The Windows Script Host error shows up now and then on startup or when you’re running Windows computer. If you really see the Windows Script Host access is disabled error on your computer, remember, do the following two things without delay:

  • Ensure data security by backing up files or recovering all lost data.
  • Try to fix the Windows Script Host error (access is denied, cannot find script file, etc.) by using the methods mentioned in this post.

Should you have any doubts, please leave a message below.

Windows Script Host provides scripting abilities like batch files, but includes many more features.. It can be used manually by a user as well as created by the operating system to automate the flow of operations on a computer. There are many errors that can take place with this process. They usually as follows:

Script: <PATH of the VBS Script>

Line: x

Char: x

Error: The description of the error.

Code: xxxxxxxx

Source: Source of the error.

Windows Script Host error on Windows 10 startup

We will be taking a look at the following fixes to get rid of the Windows Script Host errors on Windows 10,

  1. Use System File Checker.
  2. Scan computer for malware.
  3. Set the default value for the .vbs key.
  4. Troubleshoot in Clean Boot State
  5. Repair Install Windows 10.

1] Use System File Checker

Run CMD as Administrator and then execute the following command to run System File Checker:

Restart your system after the scan is completed.

You can also use our freeware FixWin to Run the System File Checker utility with a click.

2] Scan computer for malware

One of the reasons why people get this issue is because of malware. If your computer is infected by malware, you may see a Can not find script file message box appear. Scan your computer with your antivirus software. You may also use a second opinion malware scanner.

Even though most of us may have antivirus software installed on our Windows computer, there may be times of doubt, where you might want a second opinion. While one can always visit online antivirus scanners from well-known security software to scan one’s PC, some prefer to have a standalone on-demand antivirus scanner installed locally. At such times you may use these on-demand antivirus scanners.

Run the scan at Boot time or in Safe Mode for best results.

3] Set the default value for the .vbs key

Hit the WIN+R button combination to launch the Run utility, type in regedit and hit Enter. Once Registry Editor opens, navigate to the following key-

ComputerHKEY_CLASSES_ROOT.vbs

Double-click on the (Default) string and change its Value data to VBSFile.

4] Troubleshoot in Clean Boot State

A Clean Boot is used to diagnose and later troubleshoot issues with your system. During a Clean Boot, we start the system with a minimal number of drivers and startup programs which helps isolate the cause with interfering software. Once you have booted in the Clean Boot State, check if the problem persists.

Windows Script Host Error Windows 10

  • If it does not then there is some third-party process interfering with its proper functioning. Enable one process after another and see which process makes the problem appear. Thus you can find the offender.
  • If the problem does not disappear, then you may need to use the Reset This PC option.

5] Repair Install Windows 10

You can also try to Repair Install your copy of Windows 10 and that should be a good candidate to resolve your issues. Use an installation media to do this.

Hope this helps!

See this post if Windows Script Host access is disabled on your machine.

TIP: Download this tool to quickly find & fix Windows errors automatically

Windows Script Host Error 0xc004f025 Windows 10

Related Posts: