How to automate a shell with admin privs.
Posted on 2007-04-09
In Microsoft Vista, the UAC is rapidly becoming a real PITA. In order for me to issue the command 'netsh int tcp set globalautotuninglevel=disabled' I must drill down to \windows\system32 folder, highlight cmd.exe, and right click on it to switch over to the admin security token, all just so I can run the batch file with the netsh command in it. Does anyone out there know of a command line argument I may employ in a .bat file to automate this process. It needs to be done each time I boot the Vista box so that my Wireless USB NIC will run for more than a minute without turning off the tcp stack, necessitating yet another reboot. Gotta love that UAC thingy. Any other method I may employ to automate this task will also be greatly appreciated.