Reenable 'Always ask before opening this file'


  1. Posts : 48
    Windows 10 Pro 64bit
       #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 Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #2

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

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

    ftype jsfile=

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


 

  Related Discussions
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 03:26.
Find Us




Windows 10 Forums