I have made myself a member of the local administrators group. I have a script I run on all my WinXP and Win7 machines that connects to my office's VPN. The VPN is a split tunnel, so my script will add the routes to other subnets in my network:
route add 192.168.x.x mask 255.255.255.0 192.168.x.x
As I said, in WinXP and Win7 this works fine, but in Windows 8 I receive this error:
"The requested operation requires elevation"
I don't want the end user to have to right click on the file and 'Run As Administrator' since the script also takes advantage of user specific environment variables such as %appdata%.