Skip to content

Instantly share code, notes, and snippets.

@rluvaton
Last active April 29, 2020 21:37
Show Gist options
  • Save rluvaton/1179166e8782db119eb3cc3288a55753 to your computer and use it in GitHub Desktop.
Save rluvaton/1179166e8782db119eb3cc3288a55753 to your computer and use it in GitHub Desktop.
Run CMD As Administrator #batch #cmd #powershell #cli

Run CMD as Administrator

💡 Pro Tip: Add this script to PATH to make it accessible from anywhere

powershell.exe -Command "Start-Process cmd \"/k cd /d %cd%\" -Verb RunAs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment