Run a batch script as administrator in Windows command line

Estimated reading time of this article: 1 minute

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"