Microsoft Virtualization Discussions

How to disable invoke-ncssh response message

AllenChang
1,766 Views

I use invoke-ncssh to setting the simulator node that are not join cluster,

but it always feedback the message to me,

I want to hidden the message to beautify the screen,

How to disable or hidden the invoke-ncssh response message?

Thanks

 

invoke-ncssh.jpg

1 ACCEPTED SOLUTION

JohnChampion
1,700 Views

Either store the result in a variable ($result = Invoke-NcSsh) or pipe it to null at the end of the command ( | Out-Null). I usually store it in a variable - to check the result if needed.

View solution in original post

1 REPLY 1

JohnChampion
1,701 Views

Either store the result in a variable ($result = Invoke-NcSsh) or pipe it to null at the end of the command ( | Out-Null). I usually store it in a variable - to check the result if needed.

Public