I need to create File EXE when clicked by restricted user, it will execute command as administrator (Local Administrator )
I used this code:
System.Diagnostics.Process.Start(@"C:\Test.bat", ".\\Administrator", Password,".\\");
Is there any way to run a command like:
netsh int ip set address "local area connection" static 192.168.1.16 255.255.255.0 192.168.1.1 1
without using batch file?
also I have a problem with the same code when I use .msi Files. It doesn't work
System.Diagnostics.Process.Start(@"C:\Test.msi", ".\\Administrator", Password,".\\");
Any way to execute the msi files as administrator?