Hey there,
just started using RDM 8.0 and would like to start a CMD with alternate credentials. Just added an entry "Command Line" and tried to use my stored credentials, but it starts all the time with my windows credentials.
What am I doing wrong?
The credentials are stored to be used in variables. You can can use a runas command to apply a new set of credentials.
David Hervieux
The credentials are stored to be used in variables. You can can use a runas command to apply a new set of credentials.
Maybe I misunderstand your answer. What I'm trying to achieve is: In Windows, when you go to Start Menu -> Accessoires and press Shift + right Mouse you can select "Run as different user". That's what I like to do with RDM.
So I want to start a shell with different credentials. Does this fit to your answer?
Hi
You're both on the same page, let me explain in details
Create an entry of type "command line"
For the executable to run, paste the following "%systemroot%\system32\runas.exe" /user:$DOMAIN$[color=#cc0000]$USERNAME$[/color]
append the path to the executable you want to run in that field. In my case a good old command prompt so mine looked like this : "%systemroot%\system32\runas.exe" /user:$DOMAIN$\$USERNAME$ cmd
in the Host and Credentials tab, enter your full credentials
Go in the Events tab, in the After Connection area, enter an Initial Wait of 1, then paste the following in the macro field : $PASSWORD${enter}
In the Advanced Tab, check "Enable password in Variable"
When you run this, you'll see a first command prompt window that will prompt for the password, this will be filled automatically by the typing macro
A few notes :
If your credentials cannot be verified because you are on a different domain, you must add the /netonly parameter.
The red tokens in then command are in fact session variables, you access them via the hyperlink at the bottom
There it is, I will put this in the help right now.
Regards
Maurice
Thanks for the excellent assistance and guidance!!!!
Short question: The new CMD which will be started by runas opens in a new external window. Can this changed to embedded? Love to have it inside of RDM
I was afraid you'd ask that ;)
Not at the moment. We actually have to grab the window and embed it, but we do this for the window we just launched and that runs in our user's context. The other cmd is running under the identify of another user. We have to research this.
Thanks for the feedback.
Maurice
Thanks for your assistance!!