Quantcast
Channel: Devolutions Forum - Recent Posts
Viewing all articles
Browse latest Browse all 19717

Topic "Having issue with PowerShell embedded script." a message from Ingvar Orn Ingolfsson

$
0
0
Hi,

I have issue with PowerShell embedded script in RDM.

This is how the session looks like.


But when I run the script from RDM I get a error since the script is outputted to C:\Users\%username%\AppData\Local\Temp\RDM with some strange letters in the script.

Se picture below.


As seen in the picture above I have in the script the following line:
$PSCred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $Pass 
But in the script that will be outputted the line looks like this:

$PSCred = New-Object –TypeName System.Management.Automation.PSCredential –ArgumentList $User, $Pass

As you might image this will go seriously wrong.

Any ideas how to fix this?

For your info, my PC is running on English US version of OS but with Norwegian regional settings.

Viewing all articles
Browse latest Browse all 19717

Trending Articles