LucD
Leadership
Leadership

There are many ways to speed up a script.

  • use the Get-VIew cmdlet instead of the regular PowerCLI cmdlets.
  • use parallelism
    • with Start-Job you can run a script multiple times in the background (fastest method for now afaik)
    • use a PS Workflow
    • use Runspaces, but note that due to the way PowerCLI currently works, you can't use multiple threads in the same Runspace


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post