Looking for some direction..
I need to start a process with admin rights. I am currently playing with
process.start, but I am unable to elevate to admin permissions
Any Thoughts
Printable View
Looking for some direction..
I need to start a process with admin rights. I am currently playing with
process.start, but I am unable to elevate to admin permissions
Any Thoughts
which version of vb.net are you using?
its easily done in vb2008
2005
I don't think it should work that way. If the program requires admin rights, then it should a manifest telling it to do so on execution. If it doesn't, then it shouldn't need to be run as an admin.
Though I could see why someone may want to automate the process of right clicking -> run as admin.
Not sure how. Is the other application yours? If so, you can add a manifest to it to do this.
Basically I am building a launcher. The other program is not mine and has many different switches or command line arguments. To many and to complicated to type each and every time. Due to vista the other program must be run with admin otherwise it will not work properly.
doesn't everything thats run from a program with admin privileges inherit the admin privileges? i had the same question a couple of days ago. in vb2005 i couldn't find anywhere to add a manifest, although i do remember seeing other projects with a manifest file. its really easy to do in vb2008. you should download the express version.
duh....
Never thought of that.....Will have to try that. So Run launcher as admin and it should work...
Have installed 2008 and I am playing with it now.......
Thanks
For the help