I have been writing many scripts using WMI and a lot of them only work if I start visual studio with "Run as Administrator".
Is there a way to set that programmatically with .Net or other means?
Eventually, these scripts will be run as .exes from Unity3D so I need to automate setting these rights before running them. Ideally I'm hoping this can all be done in C#.