Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell GUI freezes when running PLINK

$
0
0

Hello,

I have a Powershell GUI that asks the user to make a choice using a drop-down list.

After that, the script calls another script which uses PLink to send commands to a firewall.

However, the GUI window freezes when the line of code that calls PLINK is executed and the script does not complete. 

I did some research and it appears that the reason why this happens is that the scripts use the same thread as the GUI, and they interfere with each other.

I have tried several ways of multi-threading it but without success. I have tried the start-job command on the line that runs PLINK but that causes the script to run 10 times instead of just one.

How could I do this?

Thank you.



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>