|
Re: Executing PS1 files by double clicking on them You can make a shortcut to WindowsPowershell - the executable, and
name that shortcut what you want. After the shortcut is made, you can
then append to the end of the 'Target' field -nologo -command &'\\path
\to\your\script.ps1' and when someone double clicks the link, and
presuming you have the execution policy set to run your script, a
shell will be created and your script will run it. May not be the
most elegant, but it works.
Essentially the same as scheduling a powershell script in task manager. |