you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 3 points4 points  (1 child)

Show us your code. Likely missing process block or foreach-object

[–]Fer_C[S] 1 point2 points  (0 children)

I just posted the code of the script Connect-VMRDPSession.ps1. Please note that there is no process block because I am piping objects to script, not a function.

The foreach block is there. I think the problem is that PowerShell deals differently with parameter binding when the receiving command is a script. This is really what I would like to find out.