1.    30 Aug 2015 #1
    Join Date : Aug 2015
    Posts : 42
    Windows 10 Pro 64bit

    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 System SpecsSystem Spec

  2.    31 Aug 2015 #2
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 3,824
    Windows 10 Pro X64 14393.105

    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 System SpecsSystem Spec


Similar Threads
Thread Forum
Taskbar > File Explorer > Right Click > Pinned > Not Opening with any
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...
General Support
file explorer on taskbar not opening windows, and is copying shortcuts
it suddenly stopped working the shortcuts are not opening when i click on them is it a setting?: https://i.gyazo.com/2162335674accc0768285288b30aa0fd.gif and why is the shortcuts on the taskbar explorer (when u right click it like in the gif)...
General Support
Windows 10 File System Error when opening graphics files
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
General Support
Choose a default location when opening File Explorer
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....
Software and Apps
Explorer: not responding when opening folder with exe file
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...
General Support
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 12:53.
Find Us
Twitter Facebook Google+

Windows 10 Forums