Windows 10: Reenable 'Always ask before opening this file'

  1.    30 Aug 2015 #1

    Reenable 'Always ask before opening this file'

    How do I reenable back the 'Always ask before opening this file' security popup for a .js script file? It is normally executed by Microsoft Windows Based Script Host.

    While it is annoying for everytime I double-clicked it instead of right-clicking it to edit the code, disabling the security popup would mean that the script would try to run and this is not really good..
      My ComputerSystem Spec

  2. Ztruker's Avatar
    Posts : 6,419
    Windows 10 Pro X64 17134.191
       31 Aug 2015 #2

    Open a elevated command prompt.
    Use assoc and ftype to see what is currently set:
    C:\WINDOWS\system32>assoc .js

    C:\WINDOWS\system32>ftype jsfile
    jsfile=C:\Windows\System32\WScript.exe "%1" %*

    ftype jsfile=

    to clear it. You should then get the prompt when you try to open a .js file.
      My ComputersSystem Spec


Related Threads
Hello, Is it possible to choose a default location/folder to open when opening File Explorer from the task bar? Default is that it opens Quick access. I use OneDrive a lot, and would really like to see that I could set that to open that location....
The Problem. Taskbar > File Explorer > Right Click > Pinned > Documents , Desktop or Anything on the drop down list Not Opening with any Double Click or Right Click > Open Click . . .On 1 of my PC's (main One) , Works OK on the Others. I believe...
it suddenly stopped working the shortcuts are not opening when i click on them is it a setting?: and why is the shortcuts on the taskbar explorer (when u right click it like in the gif)...
This is a clean Windows 10 Pro 64-bit install on a home-built system (ASUS Sabertooth X99 with an i7). When attempting to open graphics files (JPG, GIF, etc) this is the error that pops up: File System Error (-2147098360) 32128
I have a folder full of *.exe files. When I navigate to the folder to read its content (files listed in "tile" mode), Explorer hangs for a minute or two displaying in the title bar "not responding". Eventually, the files are displayed but it is a...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:52.
Find Us