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

Remove-PSSession is Very Slow.

$
0
0

Hi all,

I'm looking for an absolute minimum configuration for a remote PowerShell session to another server on our network. My issue actually is that 'Remove-PSSession' is very slow to complete. I've also tried 'Invoke-Command' -Computer <name> -ScriptBlock {dir c:\} as a very simple test, and it too is very slow to "clean up" after itself. Now when I say slow, I'm talking over one real time minute.

I do remote sessions to Office365 all the time and closing them down is very quick. Is there some configuration I can adjust to speed things up when a session is no longer needed?

Thanks.


-- Tim.


Viewing all articles
Browse latest Browse all 21975

Trending Articles