Timeline for Command line argument for running as another user on Windows?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2013 at 12:14 | comment | added | barlop | very silly @kellogs obviously you cannot say there is no way around it. In fact there most definitely is a way around it. I once ran a script that did runas and wrote a password, and there is a program that will run a cmd shell hidden. So it is possible in theory, as a combined solution. The program that runs things hidden is HSTART ntwind.com/software/hstart.html | |
Jul 27, 2012 at 15:40 | history | edited | Gareth | CC BY-SA 3.0 |
added 60 characters in body
|
Jan 13, 2011 at 20:26 | comment | added | kellogs | You are right. no way around it I guess. Thank you | |
Jan 13, 2011 at 20:25 | comment | added | Stanley Williams | Any modifier that comes after the command has to be built into the program. An example is iexplore.exe /k This opens Internet Explorer in kiosk mode and is built into the executable. Unless you write a script which executes the shell command with the program if you pass a modifier to the script like myscript.bat that runs myfile.exe normally but myscript.bat /another that runs myfile.exe through the shell command as another user. | |
Jan 13, 2011 at 20:20 | comment | added | kellogs | I believe 'runas' is a shell command. I need the command to be 'myexe.exe' followed by some argument which would make it run under different credentials. Any other hints ? | |
Jan 13, 2011 at 20:17 | history | answered | Stanley Williams | CC BY-SA 2.5 |