There are several virtual machines in the group, and 2 of them have really bad performance running Powershell.
A simple script like powershell.exe -NonInteractive -NoProfile -Command "Write-Output $PSVersionTable.PSVersion"
takes seconds on most of the machines, but 5+ minutes on 2 of them. Powershell version 3.0 btw.
As far as I can tell all the machines are configured the same. I've tried ngen
the powershell binaries but that hasn't helped.
How do I figure out what's causing the poor powershell performance?