execute a PowerShell (local) with arguments $HOST$ on a playlist
I run a PowerShell (local) with $HOST$ arguments over a playlist
But it doesn't show any of the hostnames however it does when I run a single session
Code:
$param1=$args[0]
write-host "Hello $param1"
How should I do it?
Thanks
Hello,
The variable $HOST$ refers to the Host of a given session.
Therefore it is not resolved for a Playlist, neither will it iterate through the entries in the playlist.
The way to do it would look like this :$pl = Get-RDMSession -Name <name of your playlist>$sess = Get-RDMSession | ?{$_.ID -in $pl.PlayList.ConnectionPlayList.ConnectionIDs}$sess.Url
Let me know if this helps, or if you need more information.
Best regards,
Alex Belisle
Thank you!
I will have to buy the Enterprise version, RDM version free doesn't support Get-RDMSession
Hello,
I will put you in contact with our sales department shortly.
Best regards,
Jeff Dagenais