Skip to content

Instantly share code, notes, and snippets.

@tsgiannis
Created March 13, 2025 09:11
Show Gist options
  • Save tsgiannis/e254ba321bbfec4d3672ef3cbc822835 to your computer and use it in GitHub Desktop.
Save tsgiannis/e254ba321bbfec4d3672ef3cbc822835 to your computer and use it in GitHub Desktop.
Execute a powershell script as administrator and set execution policy
@echo off
powershell -Command "Start-Process powershell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File \"%~dp0Laps.ps1\"' -Verb RunAs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment