Skip to content

Instantly share code, notes, and snippets.

@stavarotti
Created May 7, 2016 20:17
Show Gist options
  • Save stavarotti/3eccca44da3887fd5e335aaa06c6c725 to your computer and use it in GitHub Desktop.
Save stavarotti/3eccca44da3887fd5e335aaa06c6c725 to your computer and use it in GitHub Desktop.
:: When calling a PowerShell script, we need to bypass the the default policy which restricts (a good thing) script from running.
PowerShell -Command "if((Get-ExecutionPolicy) -ne 'Unrestricted') { Set-ExecutionPolicy Bypass -Scope Process }" "C:\vm\vmware\win7-startup.ps1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment