using runas to open .msc with visual basic .net 2.0
Posted on 2011-03-23
I am trying to use runas in some visual basic .net 2.0 code to open Custom_console.msc as another user. For some reason I can go to a command line, cd to the dir where this file is, and run it. When I try to use runas from the command line I get an error telling me this is not a valid 32 bit application. When I use the process.start method and give it a password and userid I also get the error that this is not a valid 32 bit application. However, if I right click on Custom_console.msc and choose runas from the context menu it works. How can I do this from the command line or get this to work with visual basic?