Slow PowerShell Processing - 5+minutes for Computer association
We are currently replacing our desktop fleet 20K+ and using a powershell script to make the associations between the old and new computers.
As we progress the script we are running is taking longer and longer to run.
Specificly on this line of code
New-CMComputerAssociation -SourceComputer $OldSystemName -DestinationComputer $ReplacementSystemName
Suggestions/Recommedations
Thanks
Comments
This is how you can reference/pull values from the Workflow into the InlineScript.
Brian, did this help out? If so, please to mark it as answered so others will know the answer if they need it for their own scenarios.
So when we tested the script everything worked fine
But now at 2k of 20K workstation migrations the script is taking longer and longer.
As a stop gap we are deleting completed migrations but MS is still reviewing with their team.
So most likly if we cannot get the speed up we will move to a manual csv import rather then the workflow