Skip to content

Instantly share code, notes, and snippets.

@devynspencer
Created August 26, 2016 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devynspencer/c9586d025ba7a5c89461722c5efea5be to your computer and use it in GitHub Desktop.
Save devynspencer/c9586d025ba7a5c89461722c5efea5be to your computer and use it in GitHub Desktop.
Example batch file to run a powershell script without having to fuck with the system execution policy
@echo off
Powershell -noprofile -executionpolicy bypass -file "C:\scripts\script.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment