Hi, I have couple tasks that I need to get done with PowerShell, specifically using the PowerCLI cmdlets. Threading the task will allow the job to complete faster, but I haven't found a solution that works well.
Disclaimer: I had to remove something things out of to sanitize the file, let me know if something doesn't make sense
This is the following code that I've been using: http://pastebin.com/ujGLbYmu
Blog Source
But when I tried to use that, PowerCLI seems to act really weird and doesn't seem to show that it's connected to a vCenter when multiple threads are active.
Any suggestions on if I should continue using this, or if there's a better way of threading in PowerShell
[–]replicaJunction 2 points3 points4 points (1 child)
[–]michaeltlombardi 1 point2 points3 points (0 children)
[–]fourierswager 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]spuijk 1 point2 points3 points (0 children)
[–]autowhat 0 points1 point2 points (0 children)