Hi,
I have to run a PowerShell-Script on a remote machine from with FinalBuilder 7. I tried the action "Execute PowerShell Script" and copied the following sample code on the tab "Script" under option "Specify Script":
Enter-PSSession %DeploymentServer%
Get-Content Env:COMPUTERNAME
Exit-PSSession
I expected that the output in the Build Log tab shows the name of the remote machine, but it shows the name of the local machine running FinalBuilder.
Please note, that the server running FinalBuilder is already registered as a trusted host and if I open the PowerShell command prompt and execute the above 3 lines, the name of the remote machine is shown.
So how can I execute a PowerShell remotely within FinalBuilder?
Kind regards,
Marcus