Unable to execute embedded script

Unable to execute embedded script

avatar

I have a PS embedded script in RDM I am trying to run which terminates explorer.exe then launches it again as admin using a credential from a repository.

When I launch the entry, I receive the error:

The term 'C:\Users\aweight\AppData\Local\Temp\RDM\54084fdc-c19f-43b8-9835-a1ce6811176f.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program.

This seems to happen whenever I use the embedded script option in RDM regardless of the commands run. I can execute a single line command (not embedded script) without any issues.

I checked the directory it is pointing out, and the file does exist. Attached screenshots of configuration and error.

All Comments (10)

avatar

Hello,

Thank you for contacting Devolutions Support.

Could you please confirm your Remote Desktop Manager version and which Data Source you are using ? (Note: If Devolutions Server, which version?)

Best regards,

Eric St-Martin

avatar

The version is 2021.1.36.0

Data source is internal SQL Server database.

avatar

Hello,

Can you please remove the ".exe" from the command ? Should work after that.

Best regards,

Eric St-Martin

avatar

That does not work. I get the same error message.

avatar

Can you try removing any trailing spaces to see if it changes anything ?

Your credential entry is using Username/Password type of Entry or something else?

There is an '&' symbol causing the issue for some reason. Could you maybe also create a new one and see if it works.

The command is working on my end exactly as shown on a fresh install and an older install.

Eric St-Martin