I wanted to post this solution since we run into this problem all the time: Often, our .bat scripts include making registry changes or copying files which require Administrative access. This code will cause the .bat file to trigger a UAC prompt before running...