Need help with StresStimulus? Start here.
Run StresStimulus with runas
Unregistered User Posts: 514
8/18/2023
|
Is it possible to run stresstimulus “as a different user” using command line? I have to run it as a different user to be able to access the database. This is what my script looks like: %ECHO ON% runas /user:{username} "C:\Program Files (x86)\Stimulus Technology\StresStimulus\StresStimulus.Application.EXE" /noui "C:\mytest.ssconfig" PAUSE It seems the runas command doesn’t work together with the stresstimulus command. When I run only the following command, it works: runas /user:{username} "C:\Program Files (x86)\Stimulus Technology\StresStimulus\StresStimulus.Application.EXE" But when I combine it with stresstimulus command it does not work, it just give me back the attached. Any idea how I can combine the “runas” command so that I can open stresstimulus as a different user first and then execute the script?
|
|
0
link
|
George @StresStimulus Administrator Posts: 568
2/28/2023
|
The command runas is described https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc771525(v=ws.11) In order to use the command to launch an application with arguments, you need to follow the steps described https://superuser.com/questions/1306418/pass-parameters-to-program-started-with-runas Try running this: runas /user:{username} "\”C:\Program Files (x86)\Stimulus Technology\StresStimulus\StresStimulus.Application.EXE\" /noui \"C:\ mytest.ssconfig\"”
|
|
0
link
|
Copyright © 2025 Stimulus Technology