Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Terminating a Remote Session (ISE)

$
0
0

Sometimes when I am running a block of code on a remote machine via invoke-command or in a PSSession, sometimes the code will hang and not terminate. Whether I hit the stop button at the top, or Ctrl-C, down at the bottom under the console screen, it will just read ‘Stopping’.

Usually after a few minutes it will finally return me back to a shell prompt, other times I will have to forcefully kill the powershell_ise process. Does this happen often to people? Is there another way to gracefully terminate the remote thread so I dont have to kill the entire instance? Why does this hang for such a long time?

While this happens, Memory usage never goes past 60% (so its not out of memory), and CPU is around 25%. So I know it isnt resources. Its a 64-bit instance that I am running ISE on.

submitted by /u/KyotoDesertFox
[link] [comments]

The post Terminating a Remote Session (ISE) appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles