Closed FireInWinter closed 5 years ago
Need to improve my C# skills to be able to figure threads and PowerShell runspaces, but I do take pull requests ;)
Any progress on this by chance? I connect to over 2300 devices and while I can split my scripts/files up on a few machines and only have it take 12 hours it'd be great to have a way to multi-thread powershell / posh to hit maybe 10 at a time from a single machine.
So far none. I have tried but not been able to figure how to it
Sent from my iPhone
On Nov 20, 2018, at 10:46 AM, GregJobs notifications@github.com wrote:
Any progress on this by chance? I connect to over 2300 devices and while I can split my scripts/files up on a few machines and only have it take 12 hours it'd be great to have a way to multi-thread powershell / posh to hit maybe 10 at a time from a single machine.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@GregJobs Did You try to look at https://github.com/proxb/PoshRSJob ?
I haven't tried it, looks like it could work though, thanks.
On Tue, Nov 20, 2018, 2:00 PM Max Kozlov <notifications@github.com wrote:
@GregJobs https://github.com/GregJobs Did You try to look at https://github.com/proxb/PoshRSJob ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-SSH/issues/58#issuecomment-440391817, or mute the thread https://github.com/notifications/unsubscribe-auth/AFX2OLbHVMpu2IiB51_ph2TDMKHfby1Nks5uxFFFgaJpZM4E1c4n .
I would love it if New-SSHSession were multi-threaded. I sometimes need to connect to a few hundred hosts and it takes a long time to connect to all of them. If New-SSHSession were to be multi-threaded, then it wouldn't be nearly as bad to connect to all of them.
So something like New-SSHSession -ComputerName 'Server1', 'Server2', 'Server3' -ThrottleLimit 10 -Credential $MyCred -ConnectionTimeout 30
Since it is already in C#, it shouldn't be too bad to make multi-threaded ( I hope).
Thanks for making this. I'm starting to use Posh-SSH a little more and I'm liking it..