batch-file Elevated Privileges in Batch Files Requesting Elevate Privileges in a Shortcut


Many tasks require elevated privileges. You can elevate user privileges to Administrator level for your batch runtime using a shortcut:

  1. Press alt+ and the batch file to a selected folder to create a shortcut.

  2. Right click and select "Properties".

  3. Select the "Shortcut" tab.

  4. Click "Advanced".

    enter image description here

  5. Enable "Run as Administrator".

    enter image description here

  6. Click "OK" twice.