0

I have a single powershell script that I run daily when I need it. Is there a way to set execution policy for only that script and no others?

I want to run this as I would a .bat file with a left mouse click.

I have looked at MS documentation and the scope option is too general for my needs.

Any help greatly appreciated.

user3058870
  • 81
  • 1
  • 2
  • 8
  • I commend to your attention Microsoft Learn on [Set-ExecutionPolicy](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.3) and [about_Execution_Policies](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.3). – Jeff Zeitlin Apr 04 '23 at 18:52

0 Answers0