Skip to content

Instantly share code, notes, and snippets.

@GordonBeeming
Last active August 29, 2015 14:15
Show Gist options
  • Save GordonBeeming/86f63f2930f3c4f3dbc9 to your computer and use it in GitHub Desktop.
Save GordonBeeming/86f63f2930f3c4f3dbc9 to your computer and use it in GitHub Desktop.
Simple batch file that runs a ps1 file that matches the bat file name with unrestricted execution policy
@ECHO OFF
cd /d %~dp0
powershell.exe -ExecutionPolicy Unrestricted -File ".\%~n0.ps1"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment