Script/Tools different user

avatar
gabriele01
Disabled

Hi,
we would like to execute some scripts on some sessions that are executed with another user.
I've tried "run as different user" setting in script but it's not clear which user credentials are used.
Using "add session" and then choosing powershell allow to set different credential, but then it's not available under right click "Macros/Scripts/Tools"

Ideally we need the following:

  • Sessions (IE RDP) saved with some credentials (let's say User1)
  • Scripts executed using my personal credentials (let's say User2), that in our case are different from ones of the Windows user that opens Remote Desktop Manager (let's call it User3)



Is it possible?
Thanks!

All Comments (3)

avatar

Hello,

If you are looking to execute scripts using different credentials, I would invite you to consult our help topic on the Manual RunAs feature here :
https://help.remotedesktopmanager.com/tipsandtricks_runas_manualrunas.html#description

Let me know if you have any additional questions on the subject!

Best regards,


Gabriel Degrandpré

avatar

Hi Gabriel,
I've already checked the documentation, but looks like our scenario it's not covered (or I wasn't able to get it).

What we would like to achive:

  • Remote Desktop Manager it's opened on a local machine with User1/Password1
  • I have an RDP entry called "WKS2", with saved credentials "User2/Password2" that are ones used when RDPing to it (this is working fine obviously)
  • We have a script (not a command prompt, a script that runs under Macro/Sctipt/Tools) called "Copy Update IT" that should be executed with credentials "User3/Password3", that credentials are saved under "My Credentials" in Remote Desktop Manager

undefinedundefined

How it's possible to do it? Looks like there aren't placeholder variables for global personal credentials or something like that...

Thanks!

avatar

Hello,

In order to execute a Powershell script using different credentials than the ones you are logged in with, you can configure a Powershell entry with the "Run as different user" option enabled.

"Run as different user" will refer to the session's Tools credentials, which can be found in session entries' properties under Management Tools > Tools
undefined

Best regards,


Gabriel Degrandpré