Random or regular pop up keeps popping up “How do you want to open this type of file (.js)? Keep using microsoft windows based script host” usually when malware has altered your system default script host (Wscript.exe) settings..
[wp_ad_camp_1]
(Wscript.exe is the script running engine, such as java scripts, vb scripts in a web page while you browse that web page. By default, java script is downloaded and executed in users pc by Wscript , more about this (Client-side_scripting wikipedia ) ..
How do you want to open this type of file (.js)? keep keep using microsoft windows based script host
Most of the time these kind of malware are spreaded through email attachments with bogus messages, for example see : Javascript malware (TrojanDownloader:JS) spread via email attachments ..
How can you fix “How do you want to open this type of file (.js) ?” error message ?
You must have to follow two parts as described below.. (Most of the users confirmed, running malwarebyte, adwclener and trojanremove , eset and following part 2 ( command line fixing of Wscript.exe) worked, yet few of them claimed they had to run kaspersky removal tool and rkill and roguekill tools and part 2 command line fixing of Wscript.exe)
[wp_ad_camp_2]
Part 1
Run below virus/malware scanners first ,
Use malwarebyte (free version) have a full system scan http://www.malwarebytes.org/dd/
And
Use Eset online scanner and have a system scan http://www.eset.com/scan
And
Use Adwcleaner (freeware) and and have a full system scan..http://www.bleepingcomputer.com/adw )
And
Use Kaspersky removal tool and have a full system scan http://www.kaspersky.com/removal
And
Use Trojan remover and have a full system scan http://www.simplysup.com/ (shareware)
Part 2
open command prompt run as admin
Command prompt run as admin
Run below command in administrative command prompt..
Wscript.exe //H:Wscript
[wp_ad_camp_3]
If it is successfully run, you should see this .. “The default script host is now set to “Wscript.exe””
The default script host is now set to “Wscript.exe”
See the below comments as well ….
Update:Works for Windows 10