Run a batch script as administrator in Windows command line

Estimated reading time of this article: 0 minutes 11 seconds

How to run a Windows batch script from command line as administrator?

The most simple way that I have found is to run the script via powershell.

powershell -Command "Start-Process YOUR_BATCH.cmd YOUR_PARAMETERS -Verb RunAs -Wait"