We have a fleet of ThinkPad X1s, running Windows 11, that are showing the same symptoms when using PowerShell (.NET Core 7.2.2 to be exact).
Very slow profile loading (Chocolatey's module tells that it takes more than 2000 ms to load, and it has been verified that Chocolatey isn't the issue) and overall responsiveness (like at least a second between command finishing and shell being ready again).
Except for (unrelated?) smart card errors (which don't make much sense as, except for a 4G-LTE modem, there are no card device on those machine), Event Viewer is empty.
Smart Card Reader 'Microsoft UICC ISO Reader 89946827 1' rejected IOCTL TRANSMIT: Access is denied. If this error persists, your smart card or reader may not be functioning correctly.
Command Header: 00 a4 04 00
Launching it with -NoProfile
didn't change anything, nor did reinstalling PowerShell Core. Researching the error didn't give an answer either.
Is there a way to make PowerShell return to normal speed?