Fix: There is no script engine for file extension “.ps1”.

Error:

—————————
Windows Script Host
—————————
There is no script engine for file extension ".ps1".

—————————
OK  
—————————

 

Possible Cause and Fix:

The scenario I encountered this error is when running a powershell script from wscript engine as given below:

 

Syntax that caused above error:

wscript.exe "C:scriptslaunchapp.ps1"

 

Syntax that worked:

wscript.exe "C:scriptslaunchapp.vbs"

Leave a Reply

Your email address will not be published. Required fields are marked *