kannu kc
asked on
how to use ScriptBlock parameter in invoke-SSHCommand in powershell
Hi,
I am trying to run linux script from windows server. I am using below command .
Invoke-SSHCommand -ComputerName $temp -cred $cred -ScriptBlock $ScriptBlock
I am not sure how to pass a linux script in 'ScriptBlock' parameter.
Please help.
I am trying to run linux script from windows server. I am using below command .
Invoke-SSHCommand -ComputerName $temp -cred $cred -ScriptBlock $ScriptBlock
I am not sure how to pass a linux script in 'ScriptBlock' parameter.
Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have recommended this question be closed as follows:
Accept: Gerwin Jansen EE MVE (https:#a42398788)
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.
Pber
Experts-Exchange Cleanup Volunteer