I have a powershell script based on This which displays a form with IP addresses and ping results. I've heavily modified it as I use it for switches and routers. My modification form allows me to double click on a cell to run a cmd file to run a putty command to SSH to the machine
However what I find is that the powershell scripts suspends until I exit putty. In attempt to resolve this I made the command in side the power shell script this
.\ssh.cmd $user $computer
The SSH.CMD file contains the following
start "%2" "c:\Program Files (x86)\Putty\putty.exe" -l %1 %2
Yes the form still suspends until I exit putty. I have got the direct putty command working
. "c:\Program Files (x86)\Putty\putty.exe" -l $user $computer
and this does not suspend - however I'd like to know why the running of start suspends the powershell form.
/B
switch with the start command would help or not but easy enough to test I would think (ss64.com/nt/start.html).Start-Process
cmdlet.