Windows Script Host access is disabled on this machine or Windows Script Host Access is Disabled On widows10, is a pop-up on the screen without you do anything then it is because the malware is running in the background and this is prevented by the Windows Script Host restriction in effect your system. Which is really good.
Windows Script Host(WSH) is an Automation technology of the Microsoft Windows Operating System that provides the Scripting abilities like the Batch files. It provides a wider range of Supported features. It is also known as the Microsoft Windows Script Host. Sometimes it arises an error called Windows Script Host Error seems to be a Virus or Malware infection, but it is nothing more than an error, with the VB files. It appears in the version of the Operating Systems of Window 7,8,10. It doesn’t depend on the particular software that may trigger it.
When you want to run the script using the wscript.exe or cscript.exe, an error “Windows Script Host access is disabled on this machine”, an error message is popped up on the screen. This is error message arrives at regular intervals without any script invocation of the user, as the system was infected by the malware.
Windows Script Host Access is Disabled
If the error messages pop-up on the screen at every start-up or regular intervals without you do anything, that “Windows Script Host Access is Disabled” or “windows script host access is disabled on this machine. Contact your administrator for details” this is because of the malware that is running in the background, and it is prevented by the Windows Script Hosting restrictions in the effect of your system, which is really good. In that case, you need to delete the malware totally instead of how to fix it in your system.
Run a thorough scanning until every trace of the malware is removed from your system. Don’t do anything for host restriction. It only restricts the prevention of the system. Just follow according to the steps provided below.
Enable or Disable the Windows Script Host
It is reported that several HTML Malware are reported to use the Windows Script Host Objects, but you don’t like this, then you can disable it. But remember that disabling the Windows Script Host may don’t run the Scripts like the VB scripts or the JSscripts need this feature and some software need it to be enabled. To enable or disable the WSH follow the given below steps to do so.
- Press and Hold on the Windows + R to open the Run box.
- Enter the regedit.exe in the text box and click on Ok.
- A Register Editor will be open.
- Now, navigate to the following key “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings“.
- In the right panel, you will see the Enable, of you see it as zero, then the Microsft Windows Host is “Disabled“.
- Double click on it and it will give the value 1, which means that it is enabled.
- If the value is 0, then it is disabled, and if the value is 1, then it is enabled.
- If you have done this then click OK and exit the Registry Editor. If you don’t find the entry, then you to create this as it does not exist n widows by default.
You will no longer see the Windows Script Host access if it is disabled on the machine. In this way, you can enable and disable the Window host access.
How to enable the Windows Scripting Host using registry:
- Press and Hold on the Windows + R to open the Run box.
- Enter the regedit.exe in the text box and click on Ok to open the Registry Editor.
- A Register Editor will be open.
- Delete the value named Enabled in the Following keys: “HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings“.” “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings“.
- If a key doesn’t exist, ignore and check the next key.
- Exit the Registry Editor.
Enabling the Window Service Hosting Using Comand Line
Not only through the Registry editor you can also enable the Windows Script Host using the Command Line, Follow the below steps to do so.
- Press and hold on the Windows + X to open the Command Prompt.
- Delete the value names enable the following key in the command line “REG DELETE “HKCU\SOFTWARE\Microsoft\Windows Script Host\Settings” /v Enabled /f”, “REG DELETE “HKLM\SOFTWARE\Microsoft\Windows Script Host\Settings” /v Enabled /f”.
With the Windows Script Host Restrictions lifted, and you should enable the script from the trusted services, make sure that they are safe to Run. This enables the Windows Script Host on your computer.
Inquiry why WSH is Running an Error Message.
If the error message pops up on the screen manually without running the script, because the Malware is Runnigoin the background, which is probably a scheduled task.
Use the TaskManager to find the Script File Name
To Find the executable Script File Name, you can use the simple tool kit Task Manager. Use the below steps to do so.
- Let the Error script error window be opened on the screen, and don’t close it.
- Disconnect your PC from the Internet.
- Press and hold on Ctrl + Shift + Esc, to open the task Manager.
- Right-click on the Column Header, then select the columns.
- Enable the tick on the Check box of the Command-Line and then click OK.
In this process, you will find the Complete path and File name of the scripting File which is running silently under the background.
when the windows script host access is disabled is an error message, it can prevent the device from the malware that is running in the background. The windows script host access will help to prevent the Windows Script Hosting restrictions in the effect of your system, which is really good. As is it you to enable or disable it, but most of the software doesn’t allow to disable.
Conclusion
Above are the methods to enable the windows script host access is disabled on this machine or your PC. Hope this article will help you to enable the disabled windows script host access from the registry editor and the command line. If you have any doubts regarding this topic reply to us in the comment section. Feel free to share the guide with your friends and help them to solve their issues as well. Stay tuned to Techly Fire for more informative guides.