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